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.manufacturer_id NOT IN (468,79164)' at line 1
Error No: 1064
SELECT p.product_id FROM product p LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '1' ORDER BY p.date_added DESC LIMIT 50 AND p.manufacturer_id NOT IN (468,79164)