MPP1.6


1054:Unknown column 'hfyefan_mpp_mpp_ads_location.location_id' in 'where clause' [ SQL语句 ] : SELECT COUNT(*) AS tp_count FROM `hfyefan_mpp_code` left join hfyefan_mpp_site on hfyefan_mpp_code.site_id=hfyefan_mpp_site.site_id left join hfyefan_mpp_ads_location on hfyefan_mpp_code.location_id=hfyefan_mpp_ads_location.location_id left join hfyefan_mpp_mpp_ads_size on hfyefan_mpp_code.size_id=hfyefan_mpp_mpp_ads_size.size_id left join hfyefan_mpp_mpp_ads_type on hfyefan_mpp_site.type_id=hfyefan_mpp_mpp_ads_type.type_id left join hfyefan_mpp_work_type on hfyefan_mpp_site.work_id=hfyefan_mpp_work_type.work_id WHERE hfyefan_mpp_mpp_ads_location.location_id = 40 LIMIT 1

错误位置

FILE: /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Db/Driver.class.php(350): E('1054:Unknown co...')
#1 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#3 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Model.class.php(970): Think\Db\Driver->select(Array)
#4 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Model.class.php(227): Think\Model->getField('COUNT(*) AS tp_...')
#5 /www/wwwroot/mpp.oompp.com/IndexApps/Home/Model/CodeModel.class.php(190): Think\Model->__call('count', Array)
#6 /www/wwwroot/mpp.oompp.com/IndexApps/Home/Model/CodeModel.class.php(190): Think\Model->count()
#7 /www/wwwroot/mpp.oompp.com/IndexApps/Home/Controller/WebUnionController.class.php(192): Home\Model\CodeModel->countCodesByCondition(Array)
#8 [internal function]: Home\Controller\WebUnionController->site()
#9 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\WebUnionController))
#10 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\WebUnionController), 'site')
#11 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/App.class.php(204): Think\App::exec()
#12 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/Library/Think/Think.class.php(120): Think\App::run()
#13 /www/wwwroot/mpp.oompp.com/ThinkPHPFrame/ThinkPHP.php(97): Think\Think::start()
#14 /www/wwwroot/mpp.oompp.com/index.php(9): require('/www/wwwroot/mp...')
#15 {main}