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<='2024-10-04 19:06:54'
AND (p.dt_fim >= '2024-10-04 19:06:54'
OR p.dt_fim IS NULL))
AND p.area_chamada_noticia = AND p.cd_postagem != 12369 and p.status = 1 and p.tipo='1' and p.tags != '' and p.cd_projeto = 22 and( p.tags ilike '%%')
ORDER BY p.dt_ini DESC LIMIT 3.
ERROR: syntax error at or near "AND"
LINE 25: AND p.area_chamada_noticia = AND p.cd_postagem != 123...
^