/* /home/audiofanet/www/produits/avis/index,page,6,idmarque,16907,idmarque,16907.html */ select tbl.id,tbl.note1,tbl.note2,tbl.note3,tbl.note4,tbl.commentaire1,tbl.commentaire2,tbl.commentaire3,tbl.commentaire4,tbl.date,me.pseudo,me.id as idmembre,me.type_musicien,pr.id as idproduit,pr.nom,pr.id_categorie as idcat,ma.nom_societe,ma.homepage,pr.id_marque from avis as tbl left join membre as me on tbl.id_membre=me.id left join produit as pr on tbl.id_produit=pr.id left join marque as ma on pr.id_marque=ma.id where ma.id=16907 and (((ID_categorie=3206) or (ID_categorie=5817) or (ID_categorie>=6400 and ID_categorie<=7450) or (ID_categorie=10620) or (ID_categorie=18500) or (ID_categorie>=19700 and ID_categorie<=20100) or (ID_categorie=20500) or (ID_categorie>=23100 and ID_categorie<=23230) or (ID_categorie>=23300 and ID_categorie<=24080) or (ID_categorie>=24090 and ID_categorie<=24255) or (ID_categorie>=24260 and ID_categorie<=24280) or (ID_categorie=42300) or (ID_categorie=42400) or (ID_categorie>=42600 and ID_categorie<=42625) or (ID_categorie=73030) or (ID_categorie=83000) or (ID_categorie=86000) or (ID_categorie=86600) or (ID_categorie=302500) or (ID_categorie=420000) or (ID_categorie>=570000 and ID_categorie<=579900) or (ID_categorie>=580000 and ID_categorie<=589900)) and ID_categorie='23600') order by tbl.date LIMIT 0,-40
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 '-40' at line 1