include("conexao_pdo.php"); $id_noticia = $_GET['id_noticia']; $noticias = $pdo->query("SELECT *, date_format(`data_noticia`,'%d/%m/%Y') as `data_formatada` FROM noticia where id_noticia = $id_noticia order by id_noticia desc LIMIT 1"); $noticias2 = $pdo->query("SELECT *, date_format(`data_noticia`,'%d/%m/%Y') as `data_formatada` FROM noticia where destaque = 0 order by id_noticia desc LIMIT 4 OFFSET 1"); ?>