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 '26/06/2019' >= dt_fin_agenda ORDER BY dt_fin_agenda ASC LIMIT 0, 30' at line 1