logo
 
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='3.92.28.84' AND data LIKE ('2019-07-20 00:%:%' at line 7

SELECT tb_contrato.*, DATE_FORMAT(tb_contrato.data,'%d/%m/%Y') as data FROM tb_contrato WHERE 1 SELECT * FROM tb_visitas WHERE ip='3.92.28.84' AND data LIKE ('2019-07-20 00:%:%') ORDER BY data DESC LIMIT 1;