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 ') AND publicado='1' AND (f_ini>='2024-04-25' OR f_fin>='2024-04-25') order by f_' at line 1You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND publicado='1' AND (f_ini>='2024-04-25' OR f_fin>='2024-04-25') order by f_' at line 1