:(

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 create_time desc,id desc LIMIT 10' at line 1 [ SQL语句 ] : SELECT * FROM `zq_adarticle` WHERE enable =1 and status =1 and category_id in(1,2,3,4,5,6,7,8,9,10,11,12,16,17,20,21,22,23,24,25,26,27,28,29,30,31,32) and recommend in(1,2,3,4) and id!=8009%20target= ORDER BY create_time desc,id desc LIMIT 10

错误位置

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

TRACE

[18-11-18 11:40:11] /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 'ORDER BY create_time desc,id desc LIMIT 10' at line 1
[ SQL语句 ] : SELECT * FROM `zq_adarticle` WHERE enable =1 and status =1 and category_id in(1,2,3,4,5,6,7,8,9,10,11,12,16,17,20,21,22,23,24,25,26,27,28,29,30,31,32) and recommend in(1,2,3,4) and id!=8009%20target= ORDER BY create_time desc,id desc LIMIT 10 , , ERR)
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `zq_adarticle` WHERE enable =1 and status =1 and category_id in(1,2,3,4,5,6,7,8,9,10,11,12,16,17,20,21,22,23,24,25,26,27,28,29,30,31,32) and recommend in(1,2,3,4) and id!=8009%20target= ORDER BY create_time desc,id desc LIMIT 10 )
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/Model.class.php (497) Db->select(Array)
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Home/Lib/Action/IndexAction.class.php (255) Model->select()
[18-11-18 11:40:11] () IndexAction->detail(8009%20target=)
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/App.class.php (167) ReflectionMethod->invokeArgs(, Array)
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/Common/runtime.php (243) Think::start()
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/Public/ThinkPHP/ThinkPHP.php (30) require(/www/wwwroot/aidongw.com/Public/ThinkPHP/Common/runtime.php)
[18-11-18 11:40:11] /www/wwwroot/aidongw.com/index.php (15) require(/www/wwwroot/aidongw.com/Public/ThinkPHP/ThinkPHP.php)