Notice: Undefined variable: category_id in /var/www/www-root/data/www/new/system/storage/modification/catalog/controller/product/product.php on line 397
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 <> 1626 and quantity > 0 and status = 1 and image is not null O' 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 <> 1626 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:45 Stack trace: #0 /var/www/www-root/data/www/new/system/library/db.php(23): DB\MySQLi->query('SELECT p.produc...', Array) #1 /var/www/www-root/data/www/new/catalog/model/catalog/product.php(718): DB->query('SELECT p.produc...') #2 [internal function]: ModelCatalogProduct->getPopularProductsForCategory(NULL, 1626) #3 /var/www/www-root/data/www/new/system/storage/modification/system/engine/loader.php(183): call_u in /var/www/www-root/data/www/new/system/library/db/mysqli.php on line 45