:(

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY db_column.ID ORDER BY CASE WHEN ColumnStart = '' THEN UNIX_TIMESTA' at line 21

错误位置

FILE: /mnt/www/clpga_html/app_runing/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /mnt/www/clpga_html/app_runing/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /mnt/www/clpga_html/app_runing/ThinkPHP/Library/Think/Model.class.php(1362): Think\Db\Driver->query()
#2 /mnt/www/clpga_html/app_runing/Application/Home/Model/CommonModel.class.php(73): Think\Model->query()
#3 /mnt/www/clpga_html/app_runing/Application/Home/Controller/RankController.class.php(49): Home\Model\CommonModel->getMatch()
#4 [internal function]: Home\Controller\RankController->tourList()
#5 /mnt/www/clpga_html/app_runing/ThinkPHP/Library/Think/App.class.php(164): ReflectionMethod->invoke()
#6 /mnt/www/clpga_html/app_runing/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#7 /mnt/www/clpga_html/app_runing/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#8 /mnt/www/clpga_html/app_runing/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#9 /mnt/www/clpga_html/app_runing/index.php(23): require('/mnt/www/clpga_...')
#10 {main}