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 '-9, 9' at line 1SELECT * FROM tagok_adatai WHERE lovedate > 1 AND on_count='1' AND kep is not null ORDER BY lovedate LIMIT -9, 9