:(

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 level,mphone from js_user where id=

λ

FILE: /mnt/www/jsShop/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /mnt/www/jsShop/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /mnt/www/jsShop/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /mnt/www/jsShop/ThinkPHP/Library/Think/Model.class.php(1382): Think\Db\Driver->query('select level,mp...')
#3 /mnt/www/jsShop/Application/Home/Model/GoodsModel.class.php(34): Think\Model->query('select level,mp...')
#4 /mnt/www/jsShop/Application/Home/Model/GoodsModel.class.php(14): Home\Model\GoodsModel->userinfo(NULL)
#5 /mnt/www/jsShop/Application/Home/Model/GoodsModel.class.php(8): Home\Model\GoodsModel->selectedgoods('{id}')
#6 /mnt/www/jsShop/Application/Home/Controller/GoodsController.class.php(13): Home\Model\GoodsModel->info('{id}')
#7 [internal function]: Home\Controller\GoodsController->index()
#8 /mnt/www/jsShop/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\GoodsController))
#9 /mnt/www/jsShop/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\GoodsController), 'index')
#10 /mnt/www/jsShop/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#11 /mnt/www/jsShop/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#12 /mnt/www/jsShop/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#13 /mnt/www/jsShop/index.php(37): require('/mnt/www/jsShop...')
#14 {main}