:(

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 ') and iShow = 1 and iStatus = 1 ORDER BY iIndexRe DESC, iOrder DESC, dDate DESC,' at line 1 [ SQL语句 ] : SELECT `id`,`cTitle`,`dDate`,`cUrl` FROM `t_news` WHERE iType in() and iShow = 1 and iStatus = 1 ORDER BY iIndexRe DESC, iOrder DESC, dDate DESC, id DESC LIMIT 1

错误位置

FILE: /home/hnrmyy/web/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace(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 ') and iShow = 1 and iStatus = 1 ORDER BY iIndexRe DESC, iOrder DESC, dDate DESC,' at line 1
[ SQL语句 ] : SELECT `id`,`cTitle`,`dDate`,`cUrl` FROM `t_news` WHERE iType in() and iShow = 1 and iStatus = 1 ORDER BY iIndexRe DESC, iOrder DESC, dDate DESC, id DESC LIMIT 1 , , ERR)
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT `id`,`cTitle`,`dDate`,`cUrl` FROM `t_news` WHERE iType in() and iShow = 1 and iStatus = 1 ORDER BY iIndexRe DESC, iOrder DESC, dDate DESC, id DESC LIMIT 1 )
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Core/Model.class.php (497) Db->select(Array)
[19-12-11 23:06:12] /home/hnrmyy/web/WebIndex/Lib/Action/TimePersonAction.class.php (154) Model->select()
[19-12-11 23:06:12] () TimePersonAction->index()
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Core/App.class.php (172) ReflectionMethod->invoke()
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Core/App.class.php (208) App::exec()
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/Common/runtime.php (244) Think::start()
[19-12-11 23:06:12] /home/hnrmyy/web/ThinkPHP/ThinkPHP.php (30) require(/home/hnrmyy/web/ThinkPHP/Common/runtime.php)
[19-12-11 23:06:12] /home/hnrmyy/web/index.php (27) require(/home/hnrmyy/web/ThinkPHP/ThinkPHP.php)