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 (furdo.orszag_id=1) AND (furdo.lejarat_tol<='2024-04-16' and f...' at line 2