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 '.br LIMIT 1' at line 1 SELECT *, DATE_FORMAT(dth_inc, '%d/%m/%Y') AS dth_inc FROM conteudos WHERE id_conteudos = www.documentodoestudante.com.br LIMIT 1