/www/avfasad/www/htdocs/_indy/sys/go.php [10]: db_select: SELECT COUNT(*) FROM ( SELECT `this`.`id` AS `this.id`, `this`.`create_date` AS `this.create_date`, `this`.`hidden` AS `this.hidden`, `this`.`name` AS `this.name`, `this`.`not_earlier_date` AS `this.not_earlier_date`, `this`.`not_after_date` AS `this.not_after_date`, `this`.`notice` AS `this.notice`, `this`.`description` AS `this.description` FROM `indy__News__News` `this` WHERE not_earlier_date <= CURDATE() AND ( not_after_date >= CURDATE() OR not_after_date IS NULL ) AND hidden = '0' ORDER BY not_earlier_date DESC ) rows : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';= CURDATE() AND ( not_after_date >= CURDATE() OR not_after_date IS NULL ) AN' at line 6