Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-68' at line 1' in /home/a-arida/www/model/Db.class.php:100 Stack trace: #0 /home/a-arida/www/model/Db.class.php(100): PDO->prepare('Select photo_id...') #1 /home/a-arida/www/model/category.php(47): Db::select('Select photo_id...', Array) #2 /home/a-arida/www/controller/category.php(21): categoryModel->getPhotoData('1', '-1', '') #3 /home/a-arida/www/index.php(48): categoryController->execute(Array) #4 {main} thrown in /home/a-arida/www/model/Db.class.php on line 100