SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #20 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'tianji_blog.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 #20 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'tianji_blog.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 /home/tianji/public_html/var/Typecho/Db/Adapter/Pdo.php:93
Stack trace:
#0 /home/tianji/public_html/var/Typecho/Db.php(319): Typecho_Db_Adapter_Pdo->query(Object(Typecho_Db_Query), Object(PDO), 1, 'SELECT')
#1 /home/tianji/public_html/var/Typecho/Db.php(349): Typecho_Db->query(Object(Typecho_Db_Query), 1)
#2 /home/tianji/public_html/var/Widget/Archive.php(1233): Typecho_Db->fetchAll(Object(Typecho_Db_Query), Array)
#3 /home/tianji/public_html/var/Widget/Archive.php(1375): Widget_Archive->query(Object(Typecho_Db_Query))
#4 /home/tianji/public_html/var/Typecho/Widget.php(222): Widget_Archive->execute()
#5 /home/tianji/public_html/var/Typecho/Router.php(135): Typecho_Widget::widget('Widget_Archive', NULL, Array)
#6 /home/tianji/public_html/index.php(23): Typecho_Router::dispatch()
#7 {main}