Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
Error No: 1064
SELECT COUNT(DISTINCT p.product_id) AS total FROM product p INNER JOIN product_to_store_alter p2s ON (p.product_id = p2s.product_id) INNER JOIN product_variation material ON (p.product_id = material.product_id) INNER JOIN product_variation pvc ON (p.product_id = pvc.product_id) INNER JOIN variation vc ON (vc.variation_id = pvc.variation_id) INNER JOIN variation_description vdc ON (vc.variation_id = vdc.variation_id) WHERE p.status = '1' AND p2s.store_id = '0' AND p2s.quantity > '0' AND vc.variation_group_id = '18' AND material.variation_id IN ()