:(

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 'LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `zq_adcategory` WHERE id= LIMIT 1

错误位置

FILE: /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/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 'LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `zq_adcategory` WHERE id= LIMIT 1 , , ERR)
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `zq_adcategory` WHERE id= LIMIT 1 )
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Home/Lib/Action/IndexAction.class.php (216) Model->find()
[18-12-19 16:50:12] () IndexAction->detail(393)
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/App.class.php (167) ReflectionMethod->invokeArgs(, Array)
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/Common/runtime.php (243) Think::start()
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/Public/ThinkPHP/ThinkPHP.php (30) require(/www/wwwroot/aidongw.com/Public/ThinkPHP/Common/runtime.php)
[18-12-19 16:50:12] /www/wwwroot/aidongw.com/index.php (15) require(/www/wwwroot/aidongw.com/Public/ThinkPHP/ThinkPHP.php)