Notice: Undefined index: id in /home/agarquiteto.com.br/public/wp-content/themes/garciaeogura/single.php on line 4

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 ') AND ( `t`.`post_type` = "projeto" ) AND ( `t`.`post_status` IN ( "publish" ) )' at line 7]
SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` WHERE ( ( id = ) AND ( `t`.`post_type` = "projeto" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 1

Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` WHERE ( ( id = ) AND ( `t`.`post_type` = "projeto" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 1; Response: 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 ') AND ( `t`.`post_type` = "projeto" ) AND ( `t`.`post_status` IN ( "publish" ) )' at line 7