Неперехваченное исключение
Ошибка (databaseException): Expression #1 of ORDER BY clause is not in SELECT list, references column 'ee21_old.oc_434_lj.int_val' which is not in SELECT list; this is incompatible with DISTINCT in query: SELECT DISTINCT SQL_CALC_FOUND_ROWS h.id as id, h.rel as pid
FROM cms3_hierarchy h, cms3_object_types t, cms3_permissions p, cms3_hierarchy_relations hr, cms3_objects o
LEFT JOIN cms3_object_content oc_434_lj ON oc_434_lj.obj_id=o.id AND oc_434_lj.field_id = '434'
WHERE o.type_id IN (139) AND t.id = o.type_id AND h.lang_id = '1' AND h.is_deleted = '0' AND h.is_active = '1' AND (p.rel_id = h.id AND p.level & 1 AND p.owner_id IN(13)) AND h.id = hr.child_id AND (hr.level <= 6 AND hr.rel_id = '5963') AND h.obj_id = o.id
ORDER BY oc_434_lj.int_val ASC
Показать отладочную информацию
#0 /home/ee21/domains/old.ee21.ru/public_html/classes/system/subsystems/selector/executor.php(34): mysqlConnection->query('SELECT DISTINCT...')
#1 /home/ee21/domains/old.ee21.ru/public_html/classes/system/subsystems/selector/selector.php(125): selectorExecutor->result()
#2 /home/ee21/domains/old.ee21.ru/public_html/classes/system/subsystems/selector/selector.php(151): selector->length()
#3 /home/ee21/domains/old.ee21.ru/public_html/templates/energoeffekt21/classes/modules/catalog/class.php(51): selector->__get('length')
#4 /home/ee21/domains/old.ee21.ru/public_html/classes/modules/def_module.php(95) : eval()'d code(1): catalog_custom->getObjectsListDoklad('5963')
#5 /home/ee21/domains/old.ee21.ru/public_html/classes/modules/def_module.php(95): eval()
#6 [internal function]: def_module->__call('getObjectsListD...', Array)
#7 [internal function]: catalog->getObjectsListDoklad('5963')
#8 /home/ee21/domains/old.ee21.ru/public_html/classes/system/subsystems/streams/udata/udataStream.php(99): call_user_func_array(Array, Array)
#9 /home/ee21/domains/old.ee21.ru/public_html/classes/system/subsystems/streams/udata/udataStream.php(16): udataStream->executeMacros(Array)
#10 [internal function]: udataStream->stream_open('udata://catalog...', 'rb', 0, NULL)
#11 /home/ee21/domains/old.ee21.ru/public_html/classes/system/subsystems/umiTemplaters/types/umiTemplaterXSLT.php(50): XSLTProcessor->transformToXml(Object(DOMDocument))
#12 /home/ee21/domains/old.ee21.ru/public_html/libs/root-src/index.php(149): umiTemplaterXSLT->parse(Array, 'file:///home/ee...')
#13 /home/ee21/domains/old.ee21.ru/public_html/index.php(16): require('/home/ee21/doma...')
#14 {main}