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 '-15, 15' at line 3SELECT SQL_CALC_FOUND_ROWS * FROM leilao l WHERE l.is_ativo = 1 AND l.edital <> '' ORDER BY l.data_ordem ASC LIMIT -15, 15