Fatal error: Uncaught 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.stock_status_id NOT IN (2,29)) AND p2s.store_id = '0' AND (ps.customer_...' at line 1<br />Error No: 1064<br />SELECT COUNT(DISTINCT ps.product_id) AS total FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.product_id = p.product_id) LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND (AND p.stock_status_id NOT IN (2,29)) AND p2s.store_id = '0' AND (ps.customer_group_id = '1' OR ps.customer_group_id = -1) AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) in /var/www/html/prod/prodcart/system/library/db/mysqli.php:40 Stack trace: #0 /var/www/html/prod/prodcart/system/library/db.php(45): DB\MySQLi->query('SELECT COUNT(DI...') #1 /var/www/html/prod/storage_prodcart/modification/catalog/model/catalog/p in /var/www/html/prod/prodcart/system/library/db/mysqli.php on line 40