:(

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 'index and a.platform=200 LIMIT 1' at line 1 [ SQL语句 ] : SELECT a.id AS id,a.pid AS pid,a.user_id AS user_id,a.book_id AS book_id,a.chapter_id AS chapter_id,a.type AS type,a.status AS status,a.who AS who,a.title AS title,a.content AS content,a.is_del AS is_del,a.is_top AS is_top,a.is_good AS is_good,a.old_id AS old_id,a.platform AS platform,a.create_time AS create_time,a.update_time AS update_time,a.reply_num AS reply_num,a.is_read AS is_read,a.to_user AS to_user,a.is_check AS is_check,a.thumb_num AS thumb_num,c.level_id AS level_id,d.name AS name,d.cover AS cover,d.m_cover AS m_cover FROM cm_book_comment a LEFT JOIN cm_book_pink c ON a.user_id=c.user_id and a.book_id=c.book_id LEFT JOIN cm_pink_level d ON c.level_id=d.id WHERE a.id=index and a.platform=200 LIMIT 1

错误位置

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

TRACE

[24-04-27 14:47:04] /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 'index and a.platform=200 LIMIT 1' at line 1
[ SQL语句 ] : SELECT a.id AS id,a.pid AS pid,a.user_id AS user_id,a.book_id AS book_id,a.chapter_id AS chapter_id,a.type AS type,a.status AS status,a.who AS who,a.title AS title,a.content AS content,a.is_del AS is_del,a.is_top AS is_top,a.is_good AS is_good,a.old_id AS old_id,a.platform AS platform,a.create_time AS create_time,a.update_time AS update_time,a.reply_num AS reply_num,a.is_read AS is_read,a.to_user AS to_user,a.is_check AS is_check,a.thumb_num AS thumb_num,c.level_id AS level_id,d.name AS name,d.cover AS cover,d.m_cover AS m_cover FROM cm_book_comment a LEFT JOIN cm_book_pink c ON a.user_id=c.user_id and a.book_id=c.book_id LEFT JOIN cm_pink_level d ON c.level_id=d.id WHERE a.id=index and a.platform=200 LIMIT 1 , , ERR)
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT a.id AS id,a.pid AS pid,a.user_id AS user_id,a.book_id AS book_id,a.chapter_id AS chapter_id,a.type AS type,a.status AS status,a.who AS who,a.title AS title,a.content AS content,a.is_del AS is_del,a.is_top AS is_top,a.is_good AS is_good,a.old_id AS old_id,a.platform AS platform,a.create_time AS create_time,a.update_time AS update_time,a.reply_num AS reply_num,a.is_read AS is_read,a.to_user AS to_user,a.is_check AS is_check,a.thumb_num AS thumb_num,c.level_id AS level_id,d.name AS name,d.cover AS cover,d.m_cover AS m_cover FROM cm_book_comment a LEFT JOIN cm_book_pink c ON a.user_id=c.user_id and a.book_id=c.book_id LEFT JOIN cm_pink_level d ON c.level_id=d.id WHERE a.id=index and a.platform=200 LIMIT 1 )
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Extend/Vendor/Info/Book/Book.class.php (1515) Model->find()
[24-04-27 14:47:04] /webuse/ayhy/m/M/Lib/Action/BookAction.class.php (1296) Book->commentInfo(index)
[24-04-27 14:47:04] () BookAction->CommentReply()
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Lib/Core/App.class.php (172) ReflectionMethod->invoke()
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Lib/Core/App.class.php (208) App::exec()
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/Common/runtime.php (243) Think::start()
[24-04-27 14:47:04] /webuse/ayhy/ThinkPHP/ThinkPHP.php (30) require(/webuse/ayhy/ThinkPHP/Common/runtime.php)
[24-04-27 14:47:04] /webuse/ayhy/m/index.php (19) require(/webuse/ayhy/ThinkPHP/ThinkPHP.php)