Database error
-
I have a database error. I have bridged PHPBB3 with wordpress with WP2bb.
WordPress database error Column ‘post_status’ in where clause is ambiguous for query SELECT DISTINCT wp_comments.* FROM wp_comments INNER JOIN wp_posts ON wp_posts.ID = wp_comments.comment_post_ID LEFT JOIN wp_posts as parent ON parent.ID = wp_posts.post_parent AND parent.post_type IN (‘post’, ‘page’) AND wp_posts.post_type = ‘attachment’ WHERE ( ( wp_posts.post_type = ‘post’ AND ( ( post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( wp_posts.post_author = ‘1’ ) ) ) ) ) ) AND ( ( wp_posts.post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( wp_posts.post_author = ‘1’ ) ) ) ) ) ) ) OR ( wp_posts.post_type = ‘page’ AND ( ( post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( wp_posts.post_author = ‘1’ ) ) ) ) ) ) AND ( ( wp_posts.post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( wp_posts.post_author = ‘1’ ) ) ) ) ) ) ) OR ( wp_posts.post_type = ‘attachment’ AND parent.post_type = ‘post’ AND ( ( post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( parent.post_author = ‘1’ ) ) ) ) ) ) AND ( ( parent.post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( parent.post_author = ‘1’ ) ) ) ) ) ) ) OR ( wp_posts.post_type = ‘attachment’ AND parent.post_type = ‘page’ AND ( ( post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( parent.post_author = ‘1’ ) ) ) ) ) ) AND ( ( parent.post_status IN (‘private’, ‘publish’) AND ( ( ( ( 1=2 ) OR ( parent.post_author = ‘1’ ) ) ) ) ) ) ) ) AND comment_approved = ‘1’ ORDER BY comment_date_gmt DESC LIMIT 8 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, SidebarTabsWidget->widget, get_comments
How can I solve this?
The topic ‘Database error’ is closed to new replies.