//Abre a conexão $pdo = Database::conexao(); //consulta noticias $sql_consulta_noticias = "SELECT * FROM noticia WHERE noticia.status = 'L'"; $result = $pdo->query( $sql_consulta_noticias ); $noticias = $result->fetchAll( PDO::FETCH_ASSOC ); ?>