:(

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 a.id ORDER BY `id` desc LIMIT 0,1' at line 1 [ SQL语句 ] : SELECT a.* FROM nb_content_article a left join nb_content_article_cateids c ON a.id = c.articleid WHERE ( a.delflag = 0 AND a.showflag = 1 AND a.examimeflag = 1 AND a.id < ) GROUP BY a.id ORDER BY `id` desc LIMIT 0,1

错误位置

FILE: /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT a.* FROM...', false)
#3 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/Model.class.php(579): Think\Db\Driver->select(Array)
#4 /data/wwwroot/cps.t2.dyuntech.com/Apps/Content/Model/ArticleModel.class.php(322): Think\Model->select()
#5 /data/wwwroot/cps.t2.dyuntech.com/Apps/Content/Controller/ArticleController.class.php(280): Content\Model\ArticleModel->getNextOrPrev(NULL, NULL, 'next')
#6 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Common/functions.php(729): Content\Controller\ArticleController->show(49)
#7 /data/wwwroot/cps.t2.dyuntech.com/Apps/Home/Controller/ContentController.class.php(28): R('Content/Article...', Array)
#8 [internal function]: Home\Controller\ContentController->show()
#9 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\ContentController))
#10 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\ContentController), 'show')
#11 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#12 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#13 /data/wwwroot/cps.t2.dyuntech.com/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#14 /data/wwwroot/cps.t2.dyuntech.com/index.php(28): require('/data/wwwroot/c...')
#15 {main}