:(

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 '-8,8' at line 1 [ SQL语句 ] : SELECT * FROM `y_news` WHERE sh=1 and news_class="公司新闻" ORDER BY add_time desc LIMIT -8,8

错误位置

FILE: E:\freehost\tforever\web\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[19-09-16 01:08:09] E:\freehost\tforever\web\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 '-8,8' at line 1
[ SQL语句 ] : SELECT * FROM `y_news` WHERE sh=1 and news_class="公司新闻" ORDER BY add_time desc LIMIT -8,8 , , ERR)
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error()
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Lib\Core\Db.class.php (739) DbMysql->query(SELECT * FROM `y_news` WHERE sh=1 and news_class="公司新闻" ORDER BY add_time desc LIMIT -8,8 )
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Lib\Core\Model.class.php (497) Db->select(Array)
[19-09-16 01:08:09] E:\freehost\tforever\web\home\Lib\Action\NewsAction.class.php (16) Model->select()
[19-09-16 01:08:09] () NewsAction->index()
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Lib\Core\App.class.php (169) ReflectionMethod->invoke()
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Lib\Core\App.class.php (205) App::exec()
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\Common\runtime.php (243) Think::start()
[19-09-16 01:08:09] E:\freehost\tforever\web\ThinkPHP\ThinkPHP.php (30) require(E:\freehost\tforever\web\ThinkPHP\Common\runtime.php)
[19-09-16 01:08:09] E:\freehost\tforever\web\index.php (14) require(E:\freehost\tforever\web\ThinkPHP\ThinkPHP.php)