Notice: Undefined index: id in /var/www/sedep/wp-content/themes/sedep/page-templates/imprimir.php on line 21

Erro no banco de dados do WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT post_date, post_content, post_title FROM wp_posts WHERE ID =

Notice: Undefined index: pagina in /var/www/sedep/wp-content/themes/sedep/page-templates/imprimir.php on line 24

Publicado em:
Notice: Undefined variable: conteudo in /var/www/sedep/wp-content/themes/sedep/page-templates/imprimir.php on line 44

Notice: Trying to get property 'post_date' of non-object in /var/www/sedep/wp-content/themes/sedep/page-templates/imprimir.php on line 44