Fatal error: Call to a member function rowCount() on a non-object in /var/www/html/MobileApp/application/controllers/gift.php on line 46