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.BCTID IS NULL OR va.anz_tnDATE_ADD(C...' 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,'Grainau' AS ort, 0 as OID,'Bootcamp' AS kindOfAsText FROM tl_mkt_bootcamps_termine t LEFT JOIN tl_mkt_view_bootcamps_termine_anzahl_teilnehmer va ON t.id=va.BCTID INNER JOIN tl_mkt_bootcamps s ON t.pid=s.id WHERE pid= AND (va.BCTID 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(925): Contao\Database->query('SELECT DATE_FOR...')
#2 system/modules/bootcamp/modules/ModuleMktBootcamps.php(51): makotech\divHelperFunc->getArrBootcampForOutput('standort-nuernb...')
#3 system/modules/bootcamp/modules/ModuleMktBootcamps.php(19): ModuleMktBootcamps->compileDetails()
#4 system/modules/core/modules/Module.php(287): ModuleMktBootcamps->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}