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 '-20,20' at line 1

Erreur selection produits :SELECT *, IF(prix_promo<>0,prix_promo,prix) as prix_final FROM produits p, marque m, genres g, themes t WHERE p.type_produit='1' AND m.id_marque = p.rid_marque AND g.id_genre = p.rid_genre AND p.rid_theme = t.id_theme AND p.afficher=1 AND m.afficher=1 AND (p.rid_genre = '3' OR p.rid_genre = '4' OR p.rid_genre = '6' OR p.rid_genre = '7') AND ((p.prix_promo<>0 AND p.prix_promo >='25' AND p.prix_promo <='50') OR (p.prix<>0 AND p.prix_promo=0 AND p.prix >='25' AND p.prix <='50') ) ORDER BY id_prod DESC LIMIT -20,20