:(

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 status in (0,2,4,6) and is_show=0 LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `cm_book_chapter_info` WHERE id= and status in (0,2,4,6) and is_show=0 LIMIT 1

错误位置

FILE: /data/www/web/lyunbook/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[20-01-24 06:12:01] /data/www/web/lyunbook/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 'and status in (0,2,4,6) and is_show=0 LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `cm_book_chapter_info` WHERE id= and status in (0,2,4,6) and is_show=0 LIMIT 1 , , ERR)
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `cm_book_chapter_info` WHERE id= and status in (0,2,4,6) and is_show=0 LIMIT 1 )
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Extend/Vendor/Info/Book/Book.class.php (447) Model->find()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Extend/Vendor/Info/Book/Book.class.php (1518) Book->chapterInfo()
[20-01-24 06:12:01] /data/www/web/lyunbook/www.lingyun5.com/Web/Lib/Action/UserAction.class.php (504) Book->userShelfNew(49284, 0, 7)
[20-01-24 06:12:01] () UserAction->Info()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Lib/Core/App.class.php (172) ReflectionMethod->invoke()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Lib/Core/App.class.php (208) App::exec()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/Common/runtime.php (243) Think::start()
[20-01-24 06:12:01] /data/www/web/lyunbook/ThinkPHP/ThinkPHP.php (30) require(/data/www/web/lyunbook/ThinkPHP/Common/runtime.php)
[20-01-24 06:12:01] /data/www/web/lyunbook/www.lingyun5.com/index.php (13) require(/data/www/web/lyunbook/ThinkPHP/ThinkPHP.php)