:(

SQLSTATE[42000]: Syntax error or access violation: 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 'index ) LIMIT 1' at line 1

错误位置

FILE: /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 157

TRACE

#0 /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/Db/Driver.class.php(157): PDO->prepare('SELECT * FROM `...')
#1 /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/Db/Driver.class.php(936): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/Model.class.php(759): Think\Db\Driver->select(Array)
#3 /var/www/html/tjhuijinhai/Application/Home/Controller/GoodsController.class.php(186): Think\Model->find()
#4 [internal function]: Home\Controller\GoodsController->goodsDetail('index')
#5 /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/App.class.php(162): ReflectionMethod->invokeArgs(Object(Home\Controller\GoodsController), Array)
#6 /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#7 /var/www/html/tjhuijinhai/ThinkPHP/Library/Think/Think.class.php(122): Think\App::run()
#8 /var/www/html/tjhuijinhai/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#9 /var/www/html/tjhuijinhai/index.php(50): require('/var/www/html/t...')
#10 {main}