Query Error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'giftfan_db.companies' doesn't exist
Failed SQL: SELECT COUNT(*) as count FROM companies WHERE status = :status
Params: Array
(
[:status] => 1
)
Fatal error: Uncaught Exception: Query execution failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'giftfan_db.companies' doesn't exist in /home/giftfan/domains/giftfany.com/Core/Database.php:72
Stack trace:
#0 /home/giftfan/domains/giftfany.com/Core/Database.php(497): Database->query('SELECT COUNT(*)...', Array, false)
#1 /home/giftfan/domains/giftfany.com/Core/Model.php(230): Database->getCount('companies', Array)
#2 /home/giftfan/domains/giftfany.com/Core/Model.php(89): Model->count(Array)
#3 /home/giftfan/domains/giftfany.com/Models/CompanyModel.php(9): Model->paginate(1, 12, Array, 'id ASC')
#4 /home/giftfan/domains/giftfany.com/Controllers/Front/HomeController.php(59): CompanyModel->getAll(1, 12)
#5 /home/giftfan/domains/giftfany.com/Core/Router.php(586): HomeController->index('th', '/', 'GET')
#6 /home/giftfan/domains/giftfany.com/Core/Router.php(424): Router::callAction('HomeController@...', Array, 'Front')
#7 /home/giftfan/domains/giftfany.com/Core/Router.php(342): Router::matchRouteDefinitions('/ in /home/giftfan/domains/giftfany.com/Core/Database.php on line 72