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(167): PDO->query('SELECT m.* FROM...')
#1 /home/creamentors/sites/global/functions/meta-functions.php(48): CM\Database\CSql->getAssocArray('SELECT m.* FROM...', 'liveo')
#2 /home/creamentors/sites/global/functions/meta-functions.php(87): getOgImage(NULL, 'https://www.liv...')
#3 /home/creamentors/sites/liveo/templates/head.php(5): getMeta(NULL, 0, '', 'https://www.liv...')
#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('head', Array)
#6 /home/creamentors/sites/CM/Engine.php(358): CM\Template\View->fetch('head', Array)
#7 [internal function]: CM\Engine->_render('head', Array, 'head')
#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(119): CM\Core\Dispatcher->run('render', Array)
#12 /home/creamentors/sites/CM/CM.php(66): CM\Engine->__call('render', Array)
#13 /home/creamentors/sites/liveo/controllers/ItemController.php(79): CM::__callStatic('render', Array)
#14 /home/creamentors/sites/liveo/controllers/ItemController.php(63): ItemController::_renderItem(false, '')
#15 [internal function]: ItemController::viewItemForPermalink('videovirta')
#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(315): 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(119): CM\Core\Dispatcher->run('start', Array)
#25 /home/creamentors/sites/CM/CM.php(66): CM\Engine->__call('start', Array)
#26 /home/creamentors/sites/liveo/index.php(5): CM::__callStatic('start', Array)
#27 {main}