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 'Żevo_ano=2019 AND YEAR(fecha)=2019 ORDER BY fecha DESC LIMIT 0,1' at line 1