Notícias

Erro!

# 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 'SELECT * FROM tb_visitas WHERE ip='34.229.24.100' AND data LIKE ('2019-07-18 01:' at line 8

SELECT tb_noticias.*, DATE_FORMAT(tb_noticias.data,'%d/%m/%Y') as data FROM tb_noticias WHERE 1 SELECT * FROM tb_visitas WHERE ip='34.229.24.100' AND data LIKE ('2019-07-18 01:%:%') ORDER BY data DESC