Notice: Undefined index: category_id in /home/yensao/public_html/catalog/controller/news/news.php on line 106
Fatal error: Uncaught exception 'Exception' with message 'Error: 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<br />Error No: 1064<br />SELECT COUNT(p.post_id) as total FROM oc_e_post p LEFT JOIN oc_e_post_to_category c ON c.post_id = p.post_id WHERE p.status = 1 AND c.category_id IN ()' in /home/yensao/public_html/system/library/db/mysqli.php:40
Stack trace:
#0 /home/yensao/public_html/system/library/db.php(16): DB\MySQLi->query('SELECT COUNT(p....', Array)
#1 /home/yensao/public_html/catalog/model/news/news.php(20): DB->query('SELECT COUNT(p....')
#2 [internal function]: ModelNewsNews->getTotal(Array)
#3 /home/yensao/public_html/system/storage/modification/system/engine/loader.php(178): call_user_func_array(Array, Array)
#4 [internal function]: Loader->{closure}(Array, Array)
#5 /home/yensao/public_html/system/engine/proxy.php(25): call_user_func_array(Object(Closure), Array)
#6 /home/yensao/public_html/catalog/controll in /home/yensao/public_html/system/library/db/mysqli.php on line 40