SELECT langue.*,publication.id_rubrique,DATE_FORMAT(article.datepublication_article,'%d/%m/%Y') as datepub, article.id_article,article.auteur_article,article.id_utilisateur,article.jaime_article,article.datepublication_article FROM w_article AS article LEFT JOIN w_article_langue as langue ON article.id_article = langue.id_article LEFT JOIN w_publication_article as publication ON article.id_article = publication.id_article WHERE article.id_article = AND publication.id_rubrique = 8 AND langue.langue_article = 'fr' SQL derniers articles - 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 publication.id_rubrique = 8 AND langue.langu' at line 6