Error
Database reported: 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 'AND p.Sexe = '' ORDER BY RAND()' at line 1 (Errno: 1064)
Failed query: SELECT DISTINCT p.*, pd.*, m.*, IF(s.status, s.specials_new_products_price, p.products_price) as final_price FROM osc_products p LEFT JOIN osc_products_description pd ON pd.products_id=p.products_id LEFT JOIN osc_manufacturers m ON m.manufacturers_id=p.manufacturers_id LEFT JOIN osc_products_to_categories p2c ON p2c.products_id=p.products_id LEFT JOIN osc_specials s ON p.products_id = s.products_id WHERE language_id=1 AND p.products_status=1 AND ( (p.products_quantity > 0 AND p.Disponibilite = 'Le stock uniquement') OR p.Disponibilite <> 'Le stock uniquement' ) AND p.manufacturers_id = AND p.Sexe = '' ORDER BY RAND()