Erro na consulta: SELECT p.cd_postagem,
p.titulo,
p.subtitulo,
p.texto,
p.autor,
p.tipo,
p.icone,
p.dt_inc,
p.dt_ini,
p.status,
p.cd_noticia_categoria,
p.tags,
DATE(p.dt_ini),
nc.nome AS nome_categoria
FROM sigec.sigec_postagem AS p
LEFT JOIN sigec.sigec_noticia_categoria AS nc
ON nc.cd_noticia_categoria=p.cd_noticia_categoria
WHERE
--p.ativo = 1
--AND
p.desativado = 0 AND
(p.dt_ini<='2025-02-21 18:48:37'
AND (p.dt_fim >= '2025-02-21 18:48:37'
OR p.dt_fim IS NULL))
AND p.area_chamada_noticia = 2 AND p.cd_postagem != 13703 and p.status = 1 and p.tipo='1' and p.tags != '' and p.cd_projeto = 2 and(nc.nome ilike 'Lab Pai d'Égua' OR p.tags ilike '%Educação%' or p.tags ilike '%Tecnologia%' or p.tags ilike '%Inovação%')
ORDER BY p.dt_ini DESC LIMIT 3.
ERROR: syntax error at or near "Égua"
LINE 25: ...and p.cd_projeto = 2 and(nc.nome ilike 'Lab Pai d'Égua' OR ...
^