Fatal error: Uncaught exception 'Exception' with message 'Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE fecha_fin<= '2026-05-13' AND id_tim= '' ORDER BY fecha_fin DESC' at line 1' in /var/www/html/mdoc/includes/Database.class.php:286
Stack trace:
#0 /var/www/html/mdoc/includes/Consulta.class.php(379): Database->ejecutar('SELECT SUM(CASE...')
#1 /var/www/html/mdoc/includes/Consulta.class.php(605): Consulta->ejecutar()
#2 /var/www/html/mdoc/modelos/Tim.php(4249): Consulta->leerModelo()
#3 /var/www/html/mdoc/aplicacion/Seguimiento.php(569): TimModelo->getNumEntregasAtrasadas(NULL, NULL)
#4 /var/www/html/mdoc/includes/Aplicacion.class.php(165): Seguimiento_Controlador->ver()
#5 /var/www/html/mdoc/includes/Aplicacion.class.php(122): Aplicacion->ejecutar('/seguimiento/ve...')
#6 /var/www/html/mdoc/index.php(56): Aplicacion->lanzar()
#7 {main}
thrown in /var/www/html/mdoc/includes/Database.class.php on line 286