Fatal error: Uncaught exception 'Exception' with message '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 '' at line 1. The full SQL is SELECT COUNT(*) FROM `article` AS `main` LEFT JOIN `article` AS `lang` ON `lang`.`main_id` = `main`.`id` AND `lang`.`lang` = 'cn' WHERE `main`.`main_id` = 0 AND `main`.`published` = 1 AND `main`.`category_id` = ' in /www/wwwroot/www.chenmoo.com/includes/class.mysql.php:84
Stack trace:
#0 /www/wwwroot/www.chenmoo.com/includes/class.mysql.php(60): Mysql->query('SELECT COUNT(*)...')
#1 /www/wwwroot/www.chenmoo.com/modules/abstract/models/language_abstract.php(126): Mysql->fetchOne('SELECT COUNT(*)...')
#2 /www/wwwroot/www.chenmoo.com/modules/index/blocks/pagination.php(49): Abstract_Model_Language_Abstract->getCollectionSize('AND `main`.`pub...')
#3 /www/wwwroot/www.chenmoo.com/modules/index/blocks/pagination.php(60): Index_Block_Pagination->getTotalItems()
#4 /www/wwwroot/www.chenmoo.com/modules/index/bloc in /www/wwwroot/www.chenmoo.com/includes/class.mysql.php on line 84