WordPress 数据库查询 SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC 时发生 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'vhost26723195.wp_posts.post_date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 错误,这是由 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/catch-everest/single.php'), get_sidebar, locate_template, load_template, require_once('/themes/catch-everest/sidebar.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, WP_Widget_Archives->widget, wp_get_archives 查询的。