留言板

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'typecho.typecho_comments.url' 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 #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'typecho.typecho_comments.url' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/html/typecho/var/Typecho/Db/Adapter/Pdo.php:105 Stack trace: #0 /var/www/html/typecho/var/Typecho/Db.php(354): Typecho_Db_Adapter_Pdo->query('SELECT COUNT(`a...', Object(PDO), 1, 'SELECT') #1 /var/www/html/typecho/var/Typecho/Db.php(384): Typecho_Db->query(Object(Typecho_Db_Query), 1) #2 /var/www/html/typecho/usr/themes/handsome/functions.php(841): Typecho_Db->fetchAll(Object(Typecho_Db_Query)) #3 /var/www/html/typecho/usr/themes/handsome/guestbook.php(32): getFriendWall() #4 /var/www/html/typecho/var/Widget/Archive.php(2022): require_once('/var/www/html/t...') #5 /var/www/html/typecho/var/Typecho/Router.php(138): Widget_Archive->render() #6 /var/www/html/typecho/index.php(24): Typecho_Router::dispatch() #7 {main}