DB Connection error:SQLSTATE[HY000] [2002] Connection refused
Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/thenajafgarh/public_html/system/classes/database.php:21
Stack trace:
#0 /home/thenajafgarh/public_html/application/models/buysellModel.php(140): database->Query('SELECT cp.*, c....')
#1 /home/thenajafgarh/public_html/application/controllers/bussiness.php(110): buysellModel->getBussinessDetailById('81')
#2 /home/thenajafgarh/public_html/system/classes/rout.php(38): bussiness->detail('81')
#3 /home/thenajafgarh/public_html/system/init.php(6): rout->__construct()
#4 /home/thenajafgarh/public_html/public/index.php(4): include('/home/thenajafg...')
#5 {main}
thrown in /home/thenajafgarh/public_html/system/classes/database.php on line 21