:(

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 'and sort

错误位置

FILE: /www/users/vipstech.com.cn/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace()
[17-12-17 02:27:12] /www/users/vipstech.com.cn/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 'and sort<'' order by sort desc limit 1' at line 1
[ SQL语句 ] : select title,file_name from article where status='1' and lang=1 and cat_id= and sort<'' order by sort desc limit 1, , ERR)
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Lib/Core/Model.class.php (1078) DbMysql->query()
[17-12-17 02:27:12] /www/users/vipstech.com.cn/Lib/Action/Home/_ArticleAction.class.php (66) Model->query(select title,file_name from article where status='1' and lang=1 and cat_id= and sort<'' order by sort desc limit 1)
[17-12-17 02:27:12] /www/users/vipstech.com.cn/Lib/Action/Home/EmptyAction.class.php (53) _ArticleAction->details(select title,file_name from article where status='1' and lang=1 and cat_id= and sort<'' order by sort desc limit 1)
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Lib/Core/Action.class.php (195) EmptyAction->_empty(2012nianhuanqiuziyuan-qiujidianzi, 4,29, 1)
[17-12-17 02:27:12] () Action->__call(2012nianhuanqiuziyuan-qiujidianzi, )
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Lib/Core/App.class.php (192) ReflectionMethod->invokeArgs(2012nianhuanqiuziyuan-qiujidianzi, )
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Lib/Core/App.class.php (212) App::exec(, Array)
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/Common/runtime.php (243) Think::start()
[17-12-17 02:27:12] /www/users/vipstech.com.cn/ThinkPHP/ThinkPHP.php (30) require(/www/users/vipstech.com.cn/ThinkPHP/Common/runtime.php)
[17-12-17 02:27:12] /www/users/vipstech.com.cn/index.php (6) require(/www/users/vipstech.com.cn/ThinkPHP/ThinkPHP.php)