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 '' at line 1' in /home/i561957/public_html/libraries/Database.php:81 Stack trace: #0 /home/i561957/public_html/libraries/Database.php(81): PDO->prepare('SELECT COUNT(*)...') #1 /home/i561957/public_html/models/booklistmodel.php(76): Database->query('SELECT COUNT(*)...') #2 /home/i561957/public_html/controllers/booklist.php(94): Booklistmodel->getAuthor() #3 [internal function]: Booklist->index(NULL) #4 /home/i561957/public_html/system/Application.php(63): call_user_func_array(Array, Array) #5 /home/i561957/public_html/index.php(24): Application->dispatch() #6 {main} thrown in /home/i561957/public_html/libraries/Database.php on line 81