:(

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 type=2 and status=0 and platform=200 and end_day>="2024-05-19" ORDER BY id d' at line 1 [ SQL语句 ] : SELECT * FROM `cm_user_bag_book` WHERE user_id= and type=2 and status=0 and platform=200 and end_day>="2024-05-19" ORDER BY id desc LIMIT 1

错误位置

FILE: /webuse/ayhy/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[24-05-19 07:33:05] /webuse/ayhy/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 type=2 and status=0 and platform=200 and end_day>="2024-05-19" ORDER BY id d' at line 1
[ SQL语句 ] : SELECT * FROM `cm_user_bag_book` WHERE user_id= and type=2 and status=0 and platform=200 and end_day>="2024-05-19" ORDER BY id desc LIMIT 1 , , ERR)
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `cm_user_bag_book` WHERE user_id= and type=2 and status=0 and platform=200 and end_day>="2024-05-19" ORDER BY id desc LIMIT 1 )
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[24-05-19 07:33:05] /webuse/ayhy/www/Web/Lib/Action/BookAction.class.php (433) Model->find()
[24-05-19 07:33:05] () BookAction->Read()
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Lib/Core/App.class.php (172) ReflectionMethod->invoke()
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Lib/Core/App.class.php (208) App::exec()
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/Common/runtime.php (243) Think::start()
[24-05-19 07:33:05] /webuse/ayhy/ThinkPHP/ThinkPHP.php (30) require(/webuse/ayhy/ThinkPHP/Common/runtime.php)
[24-05-19 07:33:05] /webuse/ayhy/www/index.php (17) require(/webuse/ayhy/ThinkPHP/ThinkPHP.php)