1929cc威尼斯有限公司

:(

1064: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 '-6,6' at line 1 [ SQL语句 ] : SELECT * FROM `goods` WHERE ( is_delete=0 and (1!=1 or pid = '3' or pid = '15' or pid = '16' or pid = '17') ) ORDER BY px desc,id desc LIMIT -6,6

错误位置

FILE: D:\phpStudy\WWW\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 D:\phpStudy\WWW\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1064:You have a...')
#1 D:\phpStudy\WWW\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 D:\phpStudy\WWW\ThinkPHP\Library\Think\Db\Driver.class.php(946): Think\Db\Driver->query('SELECT * FROM `...', false)
#3 D:\phpStudy\WWW\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#4 D:\phpStudy\WWW\Application\Home\Controller\ListController.class.php(87): Think\Model->select()
#5 D:\phpStudy\WWW\Application\Home\Controller\ListController.class.php(18): Home\Controller\ListController->imageAction(Array)
#6 [internal function]: Home\Controller\ListController->indexAction()
#7 D:\phpStudy\WWW\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\ListController))
#8 D:\phpStudy\WWW\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\ListController), 'indexAction')
#9 D:\phpStudy\WWW\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#10 D:\phpStudy\WWW\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#11 D:\phpStudy\WWW\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#12 D:\phpStudy\WWW\index.php(61): require('D:\phpStudy\WWW...')
#13 {main}

Baidu
sogou