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 'WHERE STR_TO_DATE(eventos.fecha, '%d/%m/%Y %H:%i:%s') >= '2024-04-07 00:00:00' ' at line 11 Plus On-line | Plus Seguridad