MySQL Error Occured
1064: 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 '100) AND (filter_sex LIKE '%Ανδρικό' OR filter_sex2 LIKE '%Ανδρικ' at line 1

QUERY = SELECT CubeCart_inventory.productId FROM CubeCart_inventory INNER JOIN CubeCart_cats_idx ON CubeCart_inventory.productId=CubeCart_cats_idx.productId WHERE CubeCart_cats_idx.cat_id IN (285,286,287,288) AND active='1' AND (filter_xrwma LIKE 'Λευκό' ) AND (filter_petres LIKE 'Διαμάντι' OR filter_petres2 LIKE 'Διαμάντι' ) AND CubeCart_inventory.man IN (,100) AND (filter_sex LIKE '%Ανδρικό' OR filter_sex2 LIKE '%Ανδρικό')