Warning: PDO::prepare(): SQLSTATE[00000]: No error: PDO constructor was not called in /home/aiomarket/public_html/includes/db.class.php on line 139

Fatal error: Uncaught Error: Call to a member function execute() on null in /home/aiomarket/public_html/includes/db.class.php:140 Stack trace: #0 /home/aiomarket/public_html/includes/db.class.php(170): db->run('SELECT * FROM i...', Array) #1 /home/aiomarket/public_html/includes/model.class.php(66): db->select('invoices', 'status = 2 and ...', Array, '*') #2 /home/aiomarket/public_html/includes/model.class.php(71): Model->select('status = 2 and ...', Array, '*') #3 /home/aiomarket/public_html/application/models/User.php(250): Model->query_first('status = 2 and ...', Array) #4 /home/aiomarket/public_html/includes/controller.class.php(32): User->isSubscribed(0) #5 /home/aiomarket/public_html/includes/router.class.php(80): Controller->__construct(Object(Registry)) #6 /home/aiomarket/public_html/includes/init.php(84): Router->loader() #7 /home/aiomarket/public_html/index.php(21): include('/home/aiomarket...') #8 {main} thrown in /home/aiomarket/public_html/includes/db.class.php on line 140