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 t.id=4 ORDER BY t.von' at line 1 (SELECT DATE_FORMAT(t.von,'%d.%m.%Y') AS von,DATE_FORMAT(t.bis,'%d.%m.%Y') AS bis,IF(t.von>DATE_ADD(CURDATE(),INTERVAL 4 DAY),0,1) AS orderover,IF(t.von>CURDATE(),0,1) AS datover,IF(va.anz_tn IS NULL,0,va.anz_tn) AS anz_tn,IF(va.AWSTID IS NULL OR va.anz_tn 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(1021): Contao\Database->query('SELECT DATE_FOR...')
#2 system/modules/aktion_des_monats/modules/ModuleAktionDesMonatsFESeminare.php(84): makotech\divHelperFunc->getArrAfterWorkShopForOutput('standort-hannov...', '', '4')
#3 system/modules/aktion_des_monats/modules/ModuleAktionDesMonatsFESeminare.php(21): ModuleAktionDesMonatsFESeminare->compileDetails()
#4 system/modules/core/modules/Module.php(287): ModuleAktionDesMonatsFESeminare->compile()
#5 system/modules/core/library/Contao/Controller.php(321): Contao\Module->generate()
#6 system/modules/core/library/Contao/InsertTags.php(447): Contao\Controller::getFrontendModule('77')
#7 system/modules/core/library/Contao/Controller.php(692): Contao\InsertTags->replace('...', false)
#8 system/modules/core/classes/FrontendTemplate.php(100): Contao\Controller::replaceInsertTags('...', false)
#9 system/modules/core/pages/PageRegular.php(190): Contao\FrontendTemplate->output(true)
#10 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#11 index.php(20): Contao\FrontendIndex->run()
#12 {main}