( ! ) 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 <> 232 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 <> 232 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 <> 232 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 <> 232 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.0051348768start( ).../index.php:32
30.0052350568require_once( '/var/www/www-root/data/www/new/system/framework.php' ).../startup.php:160
40.0095505192Front->dispatch( ).../framework.php:111
50.03186475160Front->execute( ).../front.php:34
60.03186475160Action->execute( ).../front.php:39
70.03206479504call_user_func_array:{/var/www/www-root/data/www/new/system/storage/modification/system/engine/action.php:56} ( ).../action.php:56
80.03206479888ControllerStartupRouter->index( ).../action.php:56
90.03246480776Action->execute( ).../router.php:30
100.03246486952call_user_func_array:{/var/www/www-root/data/www/new/system/storage/modification/system/engine/action.php:56} ( ).../action.php:56
110.03246493768ControllerProductProduct->index( ).../action.php:56
120.05396658424getPopularProductsForCategory ( ).../product.php:507
130.05406658864Proxy->__call( ).../product.php:507
140.05406660088call_user_func_array:{/var/www/www-root/data/www/new/system/engine/proxy.php:30} ( ).../proxy.php:30
150.05406661448Loader->{closure:/var/www/www-root/data/www/new/system/storage/modification/system/engine/loader.php:152-196}( ).../proxy.php:30
160.05456663200call_user_func_array:{/var/www/www-root/data/www/new/system/storage/modification/system/engine/loader.php:183} ( ).../loader.php:183
170.05456663720ModelCatalogProduct->getPopularProductsForCategory( ).../loader.php:183
180.05456664504DB->query( ).../product.php:663
190.05456664656DB\MySQLi->query( ).../db.php:23