Notice: Undefined variable: category_info in /var/www/html/ontimebg.com/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 674Notice: Trying to access array offset on value of type null in /var/www/html/ontimebg.com/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 674
Fatal error: Uncaught ErrorException: 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 pc.product_id NOT IN (3220) AND p.status = 1 GROU...' at line 5<br />Error No: 1064<br /> SELECT * FROM oc_product_to_category pc LEFT JOIN oc_order_product op ON op.product_id = pc.product_id JOIN oc_product p ON p.product_id = pc.product_id WHERE pc.category_id = AND pc.product_id NOT IN (3220) AND p.status = 1 GROUP BY pc.product_id ORDER BY SUM(op.quantity) DESC LIMIT 12 in /var/www/html/ontimebg.com/system/database/mysqli.php:41 Stack trace: #0 /var/www/html/ontimebg.com/vqmod/vqcache/vq2-system_library_db.php(38): DBMySQLi->query() #1 /var/www/html/ontimebg.com/vqmod/vqcache/vq2-catalog_controller_product_product.php(679): DB->query() #2 /var/www/html/ontimebg.com/vqmod/vqcache/vq2-system_eng in /var/www/html/ontimebg.com/system/database/mysqli.php on line 41