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 AS id, p.tipo, p.titulo, p.titulo_menu, p.titulo_url, p.chamada, p.texto, p.tags, p.autor,, 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 > 0 AND != 61 AND != 58 AND != 56 AND <= '2022-08-08' AND p.ativo = 'S' AND p.publicar = 'S' ORDER BY p.destaque DESC, DESC ,, p.data_original DESC LIMIT ,20