Não foi possível executar a consulta (SELECT * FROM noticias WHERE (datavld <= 'Array') AND (loop = '2') ORDER BY datavld DESC) no banco de dados: 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 'loop = '2') ORDER BY datavld DESC' at line 1