:(

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 id desc LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `jz3_archives` WHERE type="honor" AND id < ORDER BY id desc LIMIT 1

错误位置

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

TRACE

[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace()
[19-06-26 16:33:06] /data/home/qxu1608320023/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 id desc LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `jz3_archives` WHERE type="honor" AND id < ORDER BY id desc LIMIT 1 , , ERR)
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query()
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(SELECT * FROM `jz3_archives` WHERE type="honor" AND id < ORDER BY id desc LIMIT 1 )
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/Home/Lib/Action/App/HonorAction.class.php (77) Model->find(Array)
[19-06-26 16:33:06] () HonorAction->show()
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Lib/Core/App.class.php (172) ReflectionMethod->invoke()
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Lib/Core/App.class.php (208) App::exec()
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/Common/runtime.php (243) Think::start()
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/ThinkPHP/ThinkPHP.php (30) require(/data/home/qxu1608320023/htdocs/ThinkPHP/Common/runtime.php)
[19-06-26 16:33:06] /data/home/qxu1608320023/htdocs/index.php (17) require(/data/home/qxu1608320023/htdocs/ThinkPHP/ThinkPHP.php)