ERROR: Could not execute MySQL query.
Query: 'SELECT c.cont_texto FROM CONTEUDOS c WHERE c.SECOES_PROJETOS_proj_codigo = AND c.SECOES_SEC_CODIGO = 81 and c.cont_situacao = "P" and c.cont_dtinicio <= CURRENT_DATE and ( c.cont_dtfim = "000-00-00" OR c.cont_dtfim >= CURRENT_DATE ) GROUP BY c.cont_codigo ORDER BY c.cont_codigo DESC LIMIT 0,1'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 c.SECOES_SEC_CODIGO = 81 and c.cont_situacao = "P" and c.co