:(

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 `id`,`cat_name`,`cat_pid`,`cat_module` FROM `lm_category` WHERE ( id= ) LIMIT 1

错误位置

FILE: F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1064:You have a...')
#1 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\Db\Driver.class.php(946): Think\Db\Driver->query('SELECT `id`,`ca...', false)
#3 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\Model.class.php(759): Think\Db\Driver->select(Array)
#4 F:\usr\LocalUser\hyw1793460001\Application\Home\Common\function.php(202): Think\Model->find()
#5 F:\usr\LocalUser\hyw1793460001\Application\Home\Controller\PortalController.class.php(211): getMbx(NULL, NULL)
#6 [internal function]: Home\Controller\PortalController->Content()
#7 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\PortalController))
#8 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\PortalController), 'Content')
#9 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#10 F:\usr\LocalUser\hyw1793460001\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#11 F:\usr\LocalUser\hyw1793460001\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#12 F:\usr\LocalUser\hyw1793460001\index.php(33): require('F:\usr\LocalUse...')
#13 {main}