:(

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 `y_channel` WHERE ChannelID = LIMIT 1

错误位置

FILE: /data/www/www.lixuda.com/ThinkPHP/Lib/Driver/Db/DbMysqli.class.php  LINE: 314

TRACE

[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Driver/Db/DbMysqli.class.php (314) 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 `y_channel` WHERE ChannelID = LIMIT 1 , , ERR)
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Driver/Db/DbMysqli.class.php (99) DbMysqli->error()
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Core/Db.class.php (739) DbMysqli->query(SELECT * FROM `y_channel` WHERE ChannelID = LIMIT 1 )
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[18-11-13 06:04:11] /data/www/www.lixuda.com/home/Lib/Action/NewsAction.class.php (15) Model->find()
[18-11-13 06:04:11] () NewsAction->index()
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/Common/runtime.php (243) Think::start()
[18-11-13 06:04:11] /data/www/www.lixuda.com/ThinkPHP/ThinkPHP.php (30) require(/data/www/www.lixuda.com/ThinkPHP/Common/runtime.php)
[18-11-13 06:04:11] /data/www/www.lixuda.com/index.php (13) require(/data/www/www.lixuda.com/ThinkPHP/ThinkPHP.php)