Erro ao executar consulta You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND NOW() >= c.IniciarPublicacao GROUP BY c.id ORDER BY' at line 19 /** Time: 1603811932 Id Usuário: 1 Trace: #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/src/Old/Noticias.php [75] #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/pags/noticia.php [18] #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/pags/noticias.php [2] #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/index.php [224] **/ SELECT DISTINCT c.id,c.titulo,c.IniciarPublicacao,cc.categoriaConteudo,c.galeria, c.texto FROM sig_conteudos AS c LEFT JOIN sig_conteudos_categorias AS cc ON c.id=cc.idConteudo WHERE c.status='Ativo' AND cc.categoriaConteudo = AND NOW() >= c.IniciarPublicacao GROUP BY c.id ORDER BY c.IniciarPublicacao DESC LIMIT 1 Erro ao executar consulta Unknown column 'N' in 'where clause' /** Time: 1603811932 Id Usuário: 1 Trace: #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/src/Old/Noticias.php [224] #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/pags/noticia.php [25] #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/pags/noticias.php [2] #/var/zpanel/hostdata/zadmin/public_html/setedias_com_br/index.php [224] **/ SELECT g.caminho, g.comentario FROM sig_ged AS g WHERE g.Modulo = 'conteudos 1.0' AND g.tipo IN('image/jpeg','image/png','image/gif') AND g.idModulo = N ORDER BY g.id DESC LIMIT 1