( ! ) Fatal error: Uncaught exception 'Exception' with message 'Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and p.product_id <> 233 and quantity > 0 and status = 1 and image is not null OR' at line 1<br />Error No: 1064<br />SELECT p.product_id FROM oc_product as p JOIN oc_product_to_category as pc on p.product_id = pc.product_id WHERE category_id = and p.product_id <> 233 and quantity > 0 and status = 1 and image is not null ORDER BY viewed DESC LIMIT 0, 8' in /var/www/www-root/data/www/new/system/library/db/mysqli.php on line 45
( ! ) Exception: Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and p.product_id <> 233 and quantity > 0 and status = 1 and image is not null OR' at line 1<br />Error No: 1064<br />SELECT p.product_id FROM oc_product as p JOIN oc_product_to_category as pc on p.product_id = pc.product_id WHERE category_id = and p.product_id <> 233 and quantity > 0 and status = 1 and image is not null ORDER BY viewed DESC LIMIT 0, 8 in /var/www/www-root/data/www/new/system/library/db/mysqli.php on line 45
Call Stack
#TimeMemoryFunctionLocation
10.0001231576{main}( ).../index.php:0
20.0044348768start( ).../index.php:32
30.0044350568require_once( '/var/www/www-root/data/www/new/system/framework.php' ).../startup.php:160
40.0084505192Front->dispatch( ).../framework.php:111
50.02766474880Front->execute( ).../front.php:34
60.02766474880Action->execute( ).../front.php:39
70.02776479224call_user_func_array:{/var/www/www-root/data/www/new/system/storage/modification/system/engine/action.php:56} ( ).../action.php:56
80.02776479608ControllerStartupRouter->index( ).../action.php:56
90.02806480496Action->execute( ).../router.php:30
100.02816486672call_user_func_array:{/var/www/www-root/data/www/new/system/storage/modification/system/engine/action.php:56} ( ).../action.php:56
110.02816493488ControllerProductProduct->index( ).../action.php:56
120.04836657896getPopularProductsForCategory ( ).../product.php:507
130.04836658336Proxy->__call( ).../product.php:507
140.04836659560call_user_func_array:{/var/www/www-root/data/www/new/system/engine/proxy.php:30} ( ).../proxy.php:30
150.04836660936Loader->{closure:/var/www/www-root/data/www/new/system/storage/modification/system/engine/loader.php:152-196}( ).../proxy.php:30
160.04866662688call_user_func_array:{/var/www/www-root/data/www/new/system/storage/modification/system/engine/loader.php:183} ( ).../loader.php:183
170.04866663208ModelCatalogProduct->getPopularProductsForCategory( ).../loader.php:183
180.04866663992DB->query( ).../product.php:663
190.04866664128DB\MySQLi->query( ).../db.php:23