Erreur SQL !
SELECT id, titre, ref_etablissement as ref_etablissement, date_format(dateDebut,'%d-%m-%Y') as dateDebut, date_format(dateFin,'%d-%m-%Y') as dateFin, contenu FROM events WHERE dateFin > NOW() AND ref_etablissement= AND deleted=0
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 deleted=0' at line 14