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 '-24,12' at line 1 in SELECT p.*, m.nome, m.slug AS 'slug_mae', m.cidade as 'city', m.uf as 'estado', m.nome_fantasia FROM compre_mae_produto p INNER JOIN compre_mae m ON p.compre_mae_id = m.id INNER JOIN compre_mae_produto_compre_categoria r ON p.id = r.compre_mae_produto_id INNER JOIN compre_categoria c ON r.compre_categoria_id = c.id WHERE m.pagarme_stt = 1 AND p.stt = 1 AND m.stt = 1 AND c.slug LIKE 'artigos-para-festas'GROUP BY p.id ORDER BY p.update_date DESC LIMIT -24,12