Database error on listing posts for category
-
Hi,
we’ve setup a blog with wordpress in our Intranet. We have two main categories: “general” and “releases” (no sub-category). Also we added 3 articles and assigned it to the category “releases”.
If i want to show the articles of our category “releases” (e.g. term_id=4 with URL: https://our-server.de/our-blog-url/wordpress/?cat=4 ) we get the following database error in the webservers error-log:
WordPress database error 'dbteamblog.wp_posts.post_author' isn't in GROUP BY for query SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) WHERE 1=1 AND wp_term_taxonomy.taxonomy = 'category' AND wp_term_taxonomy.term_id IN ('4') AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 8 AND wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
As additional info, we used the Fusion-theme, but the same error occurs with the default-theme. To get the error we open the start page of the blog, then select the category “releases” on the sidebar.
Can you help?
- The topic ‘Database error on listing posts for category’ is closed to new replies.