:(

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: /home/wwwroot/www.lixuda.com/ThinkPHP/Lib/Driver/Db/DbMysqli.class.php  LINE: 314

TRACE

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