500 Internal Server Error

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 (42000)

#0 /home/creamentors/sites/CM/Database/CSql.php(134): PDO->query('SELECT descript...')
#1 /home/creamentors/sites/global/functions/meta-functions.php(8): CM\Database\CSql->getValue('SELECT descript...', 'haat')
#2 /home/creamentors/sites/global/functions/meta-functions.php(72): getDescription(false, 'Wedding Planner')
#3 /home/creamentors/sites/haat/templates/page-head.php(11): getMeta(false, 11, NULL, NULL)
#4 /home/creamentors/sites/CM/Template/View.php(84): include('/home/creamento...')
#5 /home/creamentors/sites/CM/Template/View.php(92): CM\Template\View->render('page-head', Array)
#6 /home/creamentors/sites/CM/Engine.php(305): CM\Template\View->fetch('page-head', Array)
#7 [internal function]: CM\Engine->_render('page-head', Array, 'pageHeadContent')
#8 /home/creamentors/sites/CM/Core/Dispatcher.php(143): call_user_func_array(Array, Array)
#9 /home/creamentors/sites/CM/Core/Dispatcher.php(126): CM\Core\Dispatcher->invokeMethod(Array, Array)
#10 /home/creamentors/sites/CM/Core/Dispatcher.php(52): CM\Core\Dispatcher->execute(Array, Array)
#11 /home/creamentors/sites/CM/Engine.php(107): CM\Core\Dispatcher->run('render', Array)
#12 /home/creamentors/sites/CM/CM.php(66): CM\Engine->__call('render', Array)
#13 /home/creamentors/sites/haat/controllers/TopicController.php(55): CM::__callStatic('render', Array)
#14 /home/creamentors/sites/haat/controllers/TopicController.php(10): TopicController->_renderTopic('fi', false, 'haamessut')
#15 [internal function]: TopicController->showTopicByPermalink('haamessut')
#16 /home/creamentors/sites/CM/Core/Dispatcher.php(146): call_user_func_array(Array, Array)
#17 /home/creamentors/sites/CM/Core/Dispatcher.php(126): CM\Core\Dispatcher->invokeMethod(Array, Array)
#18 /home/creamentors/sites/CM/Net/Router.php(116): CM\Core\Dispatcher->execute(Array, Array)
#19 /home/creamentors/sites/CM/Engine.php(265): CM\Net\Router->route(Object(CM\Net\Request))
#20 [internal function]: CM\Engine->_start()
#21 /home/creamentors/sites/CM/Core/Dispatcher.php(143): call_user_func_array(Array, Array)
#22 /home/creamentors/sites/CM/Core/Dispatcher.php(126): CM\Core\Dispatcher->invokeMethod(Array, Array)
#23 /home/creamentors/sites/CM/Core/Dispatcher.php(52): CM\Core\Dispatcher->execute(Array, Array)
#24 /home/creamentors/sites/CM/Engine.php(107): CM\Core\Dispatcher->run('start', Array)
#25 /home/creamentors/sites/CM/CM.php(66): CM\Engine->__call('start', Array)
#26 /home/creamentors/sites/haat/index.php(5): CM::__callStatic('start', Array)
#27 {main}