:-O
SQL execute error: SELECT sc.cat_id as cat_id,sc.parent_id,c.name,sc.path,sc.childs FROM `pre_site_category` `sc` LEFT JOIN pre_category c ON c.cat_id =sc.cat_id WHERE `sc`.site_id = 48 AND `sc`.status = 1 AND `c`.status = 1 ORDER BY sc.sort desc |SQLSTATE[42S02]: Base table or view not found: 1146 Table 'article_bak_1.pre_site_category' doesn't exist Code: 42S02
File:
File:/data/wwwroot/zhanqun_article/coolphp/Connection.php Line:1371
Trace
Exception: SQL execute error: SELECT sc.cat_id as cat_id,sc.parent_id,c.name,sc.path,sc.childs FROM `pre_site_category` `sc` LEFT JOIN pre_category c ON c.cat_id =sc.cat_id WHERE `sc`.site_id = 48 AND `sc`.status = 1 AND `c`.status = 1 ORDER BY sc.sort desc |SQLSTATE[42S02]: Base table or view not found: 1146 Table 'article_bak_1.pre_site_category' doesn't exist Code: 42S02 in /data/wwwroot/zhanqun_article/coolphp/Connection.php:1371
Stack trace:
#0 /data/wwwroot/zhanqun_article/coolphp/Connection.php(1314): Cool\Connection->throwException(Object(PDOException), 'SELECT sc.cat_i...', Array)
#1 /data/wwwroot/zhanqun_article/coolphp/Connection.php(806): Cool\Connection->_execute('SELECT sc.cat_i...', Array, true)
#2 /data/wwwroot/zhanqun_article/coolphp/Connection.php(514): Cool\Connection->query('SELECT sc.cat_i...', Array, 'all')
#3 /data/wwwroot/zhanqun_article/app/Model/SiteCategory.php(153): Cool\Connection->select()
#4 /data/wwwroot/zhanqun_article/app/Controller/Www/InitController.php(23): App\Model\SiteCategory::getSiteList(48, 'category_index', 0)
#5 [internal function]: App\Controller\Www\InitController->__construct()
#6 /data/wwwroot/zhanqun_article/coolphp/Container.php(166): ReflectionClass->newInstanceArgs(Array)
#7 /data/wwwroot/zhanqun_article/coolphp/Container.php(128): Cool\Container->build('App\\Controller\\...', Array)
#8 /data/wwwroot/zhanqun_article/coolphp/App.php(19): Cool\Container->get('App\\Controller\\...')
#9 /data/wwwroot/zhanqun_article/public/bw365.net/index.php(4): Cool\App::run()
#10 {main}