Сообщение об ошибке
PDOException: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'u0319789_default.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 10000 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)
ORDER BY last_comment_timestamp DESC
LIMIT 1 OFFSET 0; Array
(
[:db_condition_placeholder_0] => 1
[:tid] => 6
)
в функции advanced_forum_forum_load() (строка 224 в файле /var/www/u0319789/data/www/sk-azart.ru/sites/all/modules/advanced_forum/includes/core-overrides.inc).
Ошибка
На сайте произошла непредвиденная ошибка. Пожалуйста, повторите попытку позже.