WordPress database error Unknown column ‘wp_posts.post_type’
-
Hi,
For a few days, the error below appears in the wp_admin/error_log file:
[01-Mar-2023 10:05:35 UTC] WordPress database error Unknown column ‘wp_posts.post_type’ in ‘where clause’ for query
SELECT COUNT(*)
FROM wp_comments LEFT JOIN wp_posts AS wp_posts_to_exclude_reviews ON comment_post_ID = wp_posts_to_exclude_reviews.ID
WHERE ( ( comment_approved = ‘0’ OR comment_approved = ‘1’ ) ) AND user_id = 1 AND comment_type != ‘order_note’ AND comment_type != ‘webhook_delivery’ AND wp_posts_to_exclude_reviews.post_type NOT IN (‘product’) AND qbwbo_posts.post_type < > ‘wc_user_membership’ORDER BY wp_comments.comment_date_gmt DESC
made by WP_List_Table->views, WP_Comments_List_Table->get_views, get_comments, WP_Comment_Query->query, WP_Comment_Query->get_comments, WP_Comment_Query->get_comment_ids
Thanks
The page I need help with: [log in to see the link]
- The topic ‘WordPress database error Unknown column ‘wp_posts.post_type’’ is closed to new replies.