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 '20' at line 32

SELECT p.id AS id, p.tipo, p.titulo, p.titulo_menu, p.titulo_url, p.chamada, p.texto, p.tags, p.autor, p.data, p.publicar, p.img_destacada, p.img_destacada_no_post, p.destaque, p.tipo_conteudo, p.categorias, p.url_pagina, p.pagina_fixa, p.pagina_fixa_titulo, p.pagina_fixa_ordem, p.pagina_fixa_texto, p.pagina_fixa_explicacao, p.busca, p.hash FROM posts AS p WHERE p.id > 0 AND p.id != 61 AND p.id != 58 AND p.id != 56 AND tags LIKE '%"24"%' AND p.data <= '2021-07-29' AND p.ativo = 'S' AND p.publicar = 'S' ORDER BY p.destaque DESC, p.data DESC , p.id, p.data_original DESC LIMIT ,20