:(

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 'htm ORDER BY id desc LIMIT 1' at line 1 [ SQL语句 ] : SELECT `id` FROM `smi_press` WHERE cid = '1' and id < 1736.htm ORDER BY id desc LIMIT 1

错误位置

FILE: /home/silver/public_html/source/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[19-02-19 07:44:02] /home/silver/public_html/source/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 'htm ORDER BY id desc LIMIT 1' at line 1
[ SQL语句 ] : SELECT `id` FROM `smi_press` WHERE cid = '1' and id < 1736.htm ORDER BY id desc LIMIT 1 , , ERR)
[19-02-19 07:44:02] /home/silver/public_html/source/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[19-02-19 07:44:02] /home/silver/public_html/source/Lib/Core/Db.class.php (739) DbMysql->query(SELECT `id` FROM `smi_press` WHERE cid = '1' and id < 1736.htm ORDER BY id desc LIMIT 1 )
[19-02-19 07:44:02] /home/silver/public_html/source/Lib/Core/Model.class.php (597) Db->select(Array)
[19-02-19 07:44:02] /home/silver/public_html/apps/Lib/Action/Cn/PressAction.class.php (198) Model->find()
[19-02-19 07:44:02] () PressAction->detail()
[19-02-19 07:44:02] /home/silver/public_html/source/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[19-02-19 07:44:02] /home/silver/public_html/source/Lib/Core/App.class.php (205) App::exec()
[19-02-19 07:44:02] /home/silver/public_html/source/Lib/Core/Think.class.php (39) App::run()
[19-02-19 07:44:02] /home/silver/public_html/source/Common/runtime.php (243) Think::start()
[19-02-19 07:44:02] /home/silver/public_html/source/ThinkPHP.php (30) require(/home/silver/public_html/source/Common/runtime.php)
[19-02-19 07:44:02] /home/silver/public_html/index.php (20) require(/home/silver/public_html/source/ThinkPHP.php)