:(

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 ')' at line 1 [ SQL语句 ] : SELECT * FROM `zh_types` WHERE ( id = )

错误位置

FILE: /www/wwwroot/www2/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 251

TRACE

#0 /www/wwwroot/www2/ThinkPHP/Library/Think/Db/Driver.class.php(251): E('1064:You have a...')
#1 /www/wwwroot/www2/ThinkPHP/Library/Think/Db/Driver.class.php(646): Think\Db\Driver->error()
#2 /www/wwwroot/www2/ThinkPHP/Library/Think/Db/Driver.class.php(592): Think\Db\Driver->query('SELECT * FROM `...', false)
#3 /www/wwwroot/www2/ThinkPHP/Library/Think/Model.class.php(982): Think\Db\Driver->select(Array)
#4 /www/wwwroot/www2/Application/Home/Controller/IndexController.class.php(951): Think\Model->select()
#5 [internal function]: Home\Controller\IndexController->details()
#6 /www/wwwroot/www2/ThinkPHP/Library/Think/App.class.php(201): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#7 /www/wwwroot/www2/ThinkPHP/Library/Think/App.class.php(133): Think\App::invokeAction(Object(Home\Controller\IndexController), 'details')
#8 /www/wwwroot/www2/ThinkPHP/Library/Think/App.class.php(34): Think\App::exec()
#9 /www/wwwroot/www2/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#10 /www/wwwroot/www2/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#11 /www/wwwroot/www2/index.php(33): require('/www/wwwroot/ww...')
#12 {main}