Fatal error: Uncaught PDOException: 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 '::char)) WHERE p.status='approved' ORDER BY p.created_at DESC LIMIT 6' at line 5 in /home2/dcbgi341/publication.rkcfinsolutions.com/includes/Database.php:32 Stack trace: #0 /home2/dcbgi341/publication.rkcfinsolutions.com/includes/Database.php(32): PDO->prepare('SELECT p.title,...') #1 /home2/dcbgi341/publication.rkcfinsolutions.com/includes/Database.php(38): Database->query('SELECT p.title,...', Array) #2 /home2/dcbgi341/publication.rkcfinsolutions.com/index.php(15): Database->fetchAll('SELECT p.title,...') #3 {main} thrown in /home2/dcbgi341/publication.rkcfinsolutions.com/includes/Database.php on line 32