:(

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 * FROM `yb_nav` WHERE ( id= ) LIMIT 1

错误位置

FILE: D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 394

TRACE

#0 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\Db\Driver.class.php(394): E('1064:You have a...')
#1 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\Db\Driver.class.php(198): Think\Db\Driver->error()
#2 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\Db\Driver.class.php(1067): Think\Db\Driver->query('SELECT * FROM `...', false, false)
#3 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\Model.class.php(816): Think\Db\Driver->select(Array)
#4 D:\Xampp\htdocs\wl\dwsj\App\Home\Controller\NewsController.class.php(39): Think\Model->find()
#5 [internal function]: Home\Controller\NewsController->index()
#6 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\App.class.php(178): ReflectionMethod->invoke(Object(Home\Controller\NewsController))
#7 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\App.class.php(113): Think\App::invokeAction(Object(Home\Controller\NewsController), 'index')
#8 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\App.class.php(213): Think\App::exec()
#9 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\Library\Think\Think.class.php(136): Think\App::run()
#10 D:\Xampp\htdocs\wl\dwsj\ThinkPHP\ThinkPHP.php(100): Think\Think::start()
#11 D:\Xampp\htdocs\wl\dwsj\index.php(27): require('D:\\Xampp\\htdocs...')
#12 {main}