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.status = '1' AND p.`quantity` > 0 AND p.date_available <= NOW() A' at line 3
Error No: 1064
SELECT DISTINCT p.product_id FROM product p LEFT JOIN product_to_category p2c ON (p.product_id = p2c.product_id) WHERE p2c.category_id IN() AND p.status = '1' AND p.`quantity` > 0 AND p.date_available <= NOW() AND p.product_id != 1000 ORDER BY abs(p.price - 0) ASC LIMIT 6