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 evenune=0 order by date_depart DESC' at line 1select * from editor_evenements where type_actualite= and evenune=0 order by date_depart DESC