Erro encontrado durante o processamento! [1064]
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 '\'2020-08-02\' and ntc_publicado = 1 and ntc_data_publicacao <= '2020-08-07' and' at line 1
SQL: SELECT COUNT(*) AS total_noticias FROM erp_noticia WHERE ntc_publicado = 1 and ntc_data_publicacao <= \'2020-08-02\' and ntc_publicado = 1 and ntc_data_publicacao <= '2020-08-07' and ntc_publicado = 1 and curdate() >= ntc_data_publicacao