Title: Checking all posts for recipe errors
Last modified: August 22, 2016

---

# Checking all posts for recipe errors

 *  Resolved [Charles](https://wordpress.org/support/users/penthehuman/)
 * (@penthehuman)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/checking-all-posts-for-recipe-errors/)
 * When looking at a non recipe page, the edamam_recipe_process_head function is
   invoked and tries to get a recipe from the database where a post ID doesn’t match
   a recipe. it should check if a resource exists first.
 * The result is a LOT of these errors:
    `WordPress database error 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 for query SELECT * FROM wp_edamam_recipe_recipes
   WHERE post_id= made by require('wp-blog-header.php'), require_once('wp-includes/
   template-loader.php'), include('/themes/THEME_NAME/404.php'), get_header, locate_template,
   load_template, require_once('/themes/THEME_NAME/header.php'), wp_head, do_action('
   wp_head'), call_user_func_array, edamam_recipe_process_head, referer:`
 * [https://wordpress.org/plugins/seo-nutrition-and-print-for-recipes-by-edamam/](https://wordpress.org/plugins/seo-nutrition-and-print-for-recipes-by-edamam/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Edamam](https://wordpress.org/support/users/edamam/)
 * (@edamam)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/checking-all-posts-for-recipe-errors/#post-5706371)
 * Thank you for your post. Unfortunately this is related to the Theme you are using
   not to the plugin itself.

Viewing 1 replies (of 1 total)

The topic ‘Checking all posts for recipe errors’ is closed to new replies.

 * ![](https://ps.w.org/seo-nutrition-and-print-for-recipes-by-edamam/assets/icon-
   128x128.jpg?rev=1118787)
 * [SEO, Nutrition and Print for Recipes by Edamam](https://wordpress.org/plugins/seo-nutrition-and-print-for-recipes-by-edamam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-nutrition-and-print-for-recipes-by-edamam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-nutrition-and-print-for-recipes-by-edamam/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-nutrition-and-print-for-recipes-by-edamam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-nutrition-and-print-for-recipes-by-edamam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-nutrition-and-print-for-recipes-by-edamam/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Edamam](https://wordpress.org/support/users/edamam/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/checking-all-posts-for-recipe-errors/#post-5706371)
 * Status: resolved