Error

The website encountered an unexpected error. Please try again later.

Error message

PDOException: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'tocureau_db1.lnsc.last_comment_timestamp' which is not in SELECT list; this is incompatible with DISTINCT: SELECT ncs.last_comment_timestamp AS last_comment_timestamp, ncs.last_comment_uid AS last_comment_uid, n.nid AS nid, n.title AS title, n.type AS type, CASE ncs.last_comment_uid WHEN 0 THEN ncs.last_comment_name ELSE u.name END AS last_comment_name FROM {node} n INNER JOIN (SELECT DISTINCT lnsc.nid AS nid FROM {node_comment_statistics} lnsc ORDER BY last_comment_timestamp DESC LIMIT 1000 OFFSET 0) lastnodes ON n.nid = lastnodes.nid INNER JOIN {forum_index} f ON n.nid = f.nid AND f.tid = :tid INNER JOIN {node_comment_statistics} ncs ON n.nid = ncs.nid INNER JOIN {users} u ON ncs.last_comment_uid = u.uid WHERE (n.status = :db_condition_placeholder_0) AND (n.language IN (:db_condition_placeholder_1, :db_condition_placeholder_2)) ORDER BY last_comment_timestamp DESC LIMIT 1 OFFSET 0; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => zh-hant [:db_condition_placeholder_2] => und [:tid] => 60 ) in advanced_forum_forum_load() (line 226 of /www/wwwroot/tocureautism.org/sites/all/modules/advanced_forum/includes/core-overrides.inc).