SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #21 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'typecho.typecho_relationships.mid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Typecho_Db_Query_Exception: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #21 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'typecho.typecho_relationships.mid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/blog/var/Typecho/Db/Adapter/Pdo.php:105 Stack trace: #0 /var/www/blog/var/Typecho/Db.php(354): Typecho_Db_Adapter_Pdo->query('SELECT * FROM t...', Object(PDO), 1, 'SELECT') #1 /var/www/blog/var/Typecho/Db.php(384): Typecho_Db->query(Object(Typecho_Db_Query), 1) #2 /var/www/blog/var/Widget/Archive.php(1250): Typecho_Db->fetchAll(Object(Typecho_Db_Query), Array) #3 /var/www/blog/var/Widget/Archive.php(1392): Widget_Archive->query(Object(Typecho_Db_Query)) #4 /var/www/blog/var/Typecho/Widget.php(221): Widget_Archive->execute() #5 /var/www/blog/var/Typecho/Router.php(135): Typecho_Widget::widget('Widget_Archive', NULL, Array) #6 /var/www/blog/index.php(27): Typecho_Router::dispatch() #7 {main}