Notice: Undefined variable: category_info in /var/www/html/ on line 674Notice: Trying to access array offset on value of type null in /var/www/html/ 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/ Stack trace: #0 /var/www/html/ DBMySQLi->query() #1 /var/www/html/ DB->query() #2 /var/www/html/ in /var/www/html/ on line 41