DB error on all pages & posts
-
Hello,
I have a wordpress 3.5.2 site. All plugins have been upgraded to the latest version.
When I go to any page or post I am getting the following error:
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 wpl_posts.* FROM wpl_posts INNER JOIN wpl_postmeta ON (wpl_posts.ID = wpl_postmeta.post_id) WHERE 1=1 AND wpl_posts.post_type = ‘attachment’ AND (wpl_posts.post_status = ‘inherit’) AND ( (wpl_postmeta.meta_key = ‘_wp_attachment_is_custom_header’ AND CAST(wpl_postmeta.meta_value AS CHAR) = ‘line49’) ) GROUP BY wpl_posts.ID ORDER BY wpl_posts.menu_order, made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/line49/page.php’), get_header, locate_template, load_template, require_once(‘/themes/line49/header.php’), get_header_image, get_random_header_image, _get_random_header_data, get_uploaded_header_images, get_posts, WP_Query->query, WP_Query->get_postsI am using a child theme of ‘the-bootstrap’. I tried removing all of the custom code from the child functions.php file, but still got the error. I did a database repair and that didn’t help either.
Does anyone have any idea what would be causing this error?
Thank you.
The topic ‘DB error on all pages & posts’ is closed to new replies.