SELECT langue.titre_contenu, langue.type_contenu, langue.chapeau_contenu, DATE_FORMAT(contenu.datepublication_contenu,'%d/%m/%Y') as datepub, DATE_FORMAT(contenu.datemodification_contenu,'%d/%m/%Y') as datemodif, contenu.datedbt_contenu, contenu.datefin_contenu, contenu.id_contenu,langue.contenu_contenu,langue.url_contenu, langue.accroche_contenu FROM w_contenu as contenu, w_contenu_langue as langue WHERE langue.id_contenu = contenu.id_contenu AND langue.langue_contenu = 'FR' AND contenu.id_contenu= ORDER BY contenu.datepublication_contenu DESC LIMIT 30 - 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 'ORDER BY contenu.datepublication_contenu DESC LIMIT 30' at line 8