:(

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

错误位置

FILE: /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 339

TRACE

#0 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/Db/Driver.class.php(339): E('1064:You have a...')
#1 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/Db/Driver.class.php(173): Think\Db\Driver->error()
#2 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/Db/Driver.class.php(928): Think\Db\Driver->query('SELECT `code` F...', false)
#3 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/Model.class.php(998): Think\Db\Driver->select(Array)
#4 /home/forestau/domains/forest-autoparts.com/public_html/App/Home/Controller/PublicController.class.php(216): Think\Model->getField('code')
#5 /home/forestau/domains/forest-autoparts.com/public_html/App/Home/Controller/YwlyController.class.php(84): Home\Controller\PublicController->page_location(NULL)
#6 [internal function]: Home\Controller\YwlyController->ywly_info()
#7 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/App.class.php(174): ReflectionMethod->invoke(Object(Home\Controller\YwlyController))
#8 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/App.class.php(212): Think\App::exec()
#9 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#10 /home/forestau/domains/forest-autoparts.com/public_html/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#11 /home/forestau/domains/forest-autoparts.com/public_html/index.php(21): require('/home/forestau/...')
#12 {main}