PDOException: 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
 File=/server/tvb/live/app/views/rss/ical.phtml
 Line=36
#0 [internal function]: PDO->query('SELECT * FROM t...')
#1 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT * FROM t...', NULL, NULL)
#2 /server/tvb/live/app/views/rss/ical.phtml(36): Phalcon\Db\Adapter->fetchAll('SELECT * FROM t...')
#3 [internal function]: unknown()
#4 [internal function]: Phalcon\Mvc\View\Engine\Php->render('/server/tvb/liv...', Array, true)
#5 [internal function]: Phalcon\Mvc\View->_engineRender(Array, 'rss/ical', true, true, NULL)
#6 [internal function]: Phalcon\Mvc\View->render('rss', 'ical')
#7 /server/tvb/live/public/index.php(211): Phalcon\Mvc\Application->handle()
#8 {main}