:(

1055:Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'tform_form.s.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [ SQL语句 ] : SELECT s.bt_id FROM form_files f,form_states s WHERE ( f.type_id = '239' AND f.scope_id != '0' AND f.scope_id = s.id ) GROUP BY s.bt_id ORDER BY s.name

Wrong File

FILE: /home/tform/public_html/Think/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /home/tform/public_html/Think/Library/Think/Db/Driver.class.php(350): E('1055:Expression...')
#1 /home/tform/public_html/Think/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /home/tform/public_html/Think/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT s.bt_id ...', false)
#3 /home/tform/public_html/Think/Library/Think/Model.class.php(579): Think\Db\Driver->select(Array)
#4 /home/tform/public_html/Apps/Home/Controller/TypesController.class.php(234): Think\Model->select()
#5 [internal function]: Home\Controller\TypesController->index()
#6 /home/tform/public_html/Think/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\TypesController))
#7 /home/tform/public_html/Think/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\TypesController), 'index')
#8 /home/tform/public_html/Think/Library/Think/App.class.php(204): Think\App::exec()
#9 /home/tform/public_html/Think/Library/Think/Think.class.php(120): Think\App::run()
#10 /home/tform/public_html/Think/ThinkPHP.php(97): Think\Think::start()
#11 /home/tform/public_html/index.php(12): require('/home/tform/pub...')
#12 {main}