:(

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 'ORDER BY add_time asc LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `y_anli` WHERE id>8 and sh=1 and news_class = ORDER BY add_time asc LIMIT 1

错误位置

FILE: /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error(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 'ORDER BY add_time asc LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `y_anli` WHERE id>8 and sh=1 and news_class = ORDER BY add_time asc LIMIT 1 , , ERR)
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(SELECT * FROM `y_anli` WHERE id>8 and sh=1 and news_class = ORDER BY add_time asc LIMIT 1 )
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/home/Lib/Action/NewsAction.class.php (147) Model->find(Array)
[18-11-21 21:46:11] () NewsAction->shownews()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/Common/runtime.php (243) Think::start()
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/ThinkPHP/ThinkPHP.php (30) require(/data/home/qxu1607960079/htdocs/ThinkPHP/Common/runtime.php)
[18-11-21 21:46:11] /data/home/qxu1607960079/htdocs/index.php (5) require(/data/home/qxu1607960079/htdocs/ThinkPHP/ThinkPHP.php)