Warning: mysqli::query() [mysqli.query]: Couldn't fetch mysqli in /homepages/25/d172732921/htdocs/includes/classes/PictureCategories/PictureCategoryDAO.php5 on line 111

Warning: PictureCategoryDAO::exists() [picturecategorydao.exists]: Couldn't fetch mysqli in /homepages/25/d172732921/htdocs/includes/classes/PictureCategories/PictureCategoryDAO.php5 on line 112

Warning: PictureCategoryDAO::exists() [picturecategorydao.exists]: Couldn't fetch mysqli in /homepages/25/d172732921/htdocs/includes/classes/PictureCategories/PictureCategoryDAO.php5 on line 112
DBErrorException Exception Occurred
===================================

Code: 0
Message: Error querying database: .

Stack Trace:
#0 /homepages/25/d172732921/htdocs/viewcategory.php5(14): PictureCategoryDAO->exists('11')
#1 {main}

SQL:
SELECT COUNT(PictureCategoryId) AS IDCount
FROM   PictureCategories
WHERE  PictureCategoryId = 11