Fatal error: Uncaught exception Exception with message Query error: 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 'AND (va.AWSTID IS NULL OR va.anz_tnDATE_ADD(...' at line 1 (SELECT DATE_FORMAT(t.von,'%d.%m.%Y') AS von,DATE_FORMAT(t.bis,'%d.%m.%Y') AS bis,0 AS orderover,0 AS datover,IF(va.anz_tn IS NULL,0,va.anz_tn) AS anz_tn, t.id AS tid,'Erfurt' AS ort,0 AS OID,'After-Work-Shop' AS kindOfAsText FROM tl_mkt_after_work_shops_termine t LEFT JOIN tl_mkt_view_after_work_shops_termine_anzahl_teilnehmer va ON t.id=va.AWSTID INNER JOIN tl_mkt_after_work_shops s ON t.pid=s.id WHERE pid= AND (va.AWSTID IS NULL OR va.anz_tnDATE_ADD(CURDATE(),INTERVAL 4 DAY) ORDER BY t.von) thrown in system/modules/core/library/Contao/Database/Statement.php on line 295
#0 system/modules/core/library/Contao/Database.php(207): Contao\Database\Statement->query('SELECT DATE_FOR...')
#1 system/modules/makotech_classes/classes/divHelperFunc.php(1033): Contao\Database->query('SELECT DATE_FOR...')
#2 system/modules/after_work_shops/modules/ModuleMktAfterWorkShops.php(71): makotech\divHelperFunc->getArrAfterWorkShopForOutput('schnupperkurse')
#3 system/modules/after_work_shops/modules/ModuleMktAfterWorkShops.php(19): ModuleMktAfterWorkShops->compileDetails()
#4 system/modules/core/modules/Module.php(287): ModuleMktAfterWorkShops->compile()
#5 system/modules/core/elements/ContentModule.php(59): Contao\Module->generate()
#6 system/modules/core/library/Contao/Controller.php(484): Contao\ContentModule->generate()
#7 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#8 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#9 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#10 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
#11 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#12 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#13 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#14 index.php(20): Contao\FrontendIndex->run()
#15 {main}