:(

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 is_suggest=1 AND is_show=1 ORDER BY order_by asc,id desc LIMIT 6' at line 1 [ SQL语句 ] : SELECT * FROM `fl_articles` WHERE sort_id= AND is_suggest=1 AND is_show=1 ORDER BY order_by asc,id desc LIMIT 6

错误位置

FILE: D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (320) trace()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error(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 is_suggest=1 AND is_show=1 ORDER BY order_by asc,id desc LIMIT 6' at line 1
[ SQL语句 ] : SELECT * FROM `fl_articles` WHERE sort_id= AND is_suggest=1 AND is_show=1 ORDER BY order_by asc,id desc LIMIT 6 , , ERR)
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Core\Db.class.php (739) DbMysql->query()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Core\Model.class.php (497) Db->select(SELECT * FROM `fl_articles` WHERE sort_id= AND is_suggest=1 AND is_show=1 ORDER BY order_by asc,id desc LIMIT 6 )
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\home\Lib\Action\IndexAction.class.php (11) Model->select(Array)
[17-05-25 01:30:05] () IndexAction->index()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Core\App.class.php (169) ReflectionMethod->invoke()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Core\App.class.php (205) App::exec()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\Common\runtime.php (245) Think::start()
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\ThinkPHP\ThinkPHP.php (30) require(D:\wwwroot\yzxyey.com\ThinkPHP\Common\runtime.php)
[17-05-25 01:30:05] D:\wwwroot\yzxyey.com\index.php (5) require(D:\wwwroot\yzxyey.com\ThinkPHP\ThinkPHP.php)