requete : SELECT * , DATE_FORMAT(date_aff, '%e/%m/%Y') as dateformatee , typecontenuid FROM dbarticles WHERE dbarticles.typecontenuid= and dbarticles.idversion=1 and dbarticles.actif=1 order by date_aff desc , ordre asc 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 dbarticles.idversion=1 and dbarticles.actif=1 order by date_aff desc , or' at line 1