Fatal error:
SQL Error:
--
SELECT N.*, NI.arquivo, NI.legenda
FROM noticias as N
LEFT JOIN noticias_imagens as NI ON NI.id_noticia = N.id
WHERE N.ativo = '1'
AND N.id_unidade =
GROUP BY N.id
ORDER BY data DESC, id DESC
LIMIT 5
--
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 'GROUP BY N.id ORDER BY data DESC, id DESC LIMIT 5' at line 6
--------------------
in /www/html/sistema/utils/helpers/database_helper.php on line 8