:(

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 'and zxtype=1 order by id desc limit 6' at line 1 [ SQL语句 ] : select id,seo_key as title,ntypeid,schoolenname,teacherid,ntypeenname,zxtype,addtime from net_article where site_www=1 and ntypeid= and zxtype=1 order by id desc limit 6

错误位置

FILE: /data/www/wangxiao.thea.cn/NdThink/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /data/www/wangxiao.thea.cn/NdThink/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /data/www/wangxiao.thea.cn/NdThink/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /data/www/wangxiao.thea.cn/NdThink/Library/Think/Model.class.php(1382): Think\Db\Driver->query('select id,seo_k...')
#3 /data/www/wangxiao.thea.cn/Nuoda_NetApp/AppWww/Controller/CacheController.class.php(13): Think\Model->query('select id,seo_k...')
#4 /data/www/wangxiao.thea.cn/Nuoda_NetApp/AppWww/Controller/CacheController.class.php(249): AppWww\Controller\CacheController->_getArticleData(' where site_www...', 6)
#5 /data/www/wangxiao.thea.cn/Nuoda_NetApp/AppWww/Controller/GoodsController.class.php(18): AppWww\Controller\CacheController->getNewest_rw(NULL)
#6 [internal function]: AppWww\Controller\GoodsController->goods()
#7 /data/www/wangxiao.thea.cn/NdThink/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(AppWww\Controller\GoodsController))
#8 /data/www/wangxiao.thea.cn/NdThink/Library/Think/App.class.php(110): Think\App::invokeAction(Object(AppWww\Controller\GoodsController), 'goods')
#9 /data/www/wangxiao.thea.cn/NdThink/Library/Think/App.class.php(204): Think\App::exec()
#10 /data/www/wangxiao.thea.cn/NdThink/Library/Think/Think.class.php(120): Think\App::run()
#11 /data/www/wangxiao.thea.cn/NdThink/ThinkPHP.php(97): Think\Think::start()
#12 /data/www/wangxiao.thea.cn/wangxiao.php(20): require('/data/www/wangx...')
#13 {main}