Fatal error: Uncaught exception Exception with message Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 (SELECT COUNT(form_id) FROM tl_lead WHERE tl_lead.form_id = ;) thrown in system/modules/core/library/Contao/Database/Statement.php on line 295
#0 system/modules/core/library/Contao/Database/Statement.php(264): Contao\Database\Statement->query()
#1 system/modules/zodasAnmeldung/classes/ZodasHandler.php(38): Contao\Database\Statement->execute()
#2 templates/dma_eg_zodas_kurse.html5(3): zodas_anmeldung\ZodasHandler::checkKurseStatus()
#3 system/modules/core/library/Contao/BaseTemplate.php(88): include('/home/zodasch/p...')
#4 system/modules/core/library/Contao/Template.php(277): Contao\BaseTemplate->parse()
#5 system/modules/core/classes/FrontendTemplate.php(46): Contao\Template->parse()
#6 system/modules/dma_elementgenerator/DMAElementGenerator.php(738): Contao\FrontendTemplate->parse()
#7 system/modules/dma_elementgenerator/DMAElementGenerator.php(48): DMAElementGenerator->compile(Object(DMAElementGeneratorContent))
#8 system/modules/dma_elementgenerator/DMAElementGeneratorContent.php(47): DMAElementGenerator->generate(Object(DMAElementGeneratorContent))
#9 system/modules/core/elements/ContentElement.php(265): DMAElementGeneratorContent->compile()
#10 system/modules/core/library/Contao/Controller.php(484): Contao\ContentElement->generate()
#11 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#12 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#13 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#14 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
#15 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#16 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#17 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#18 index.php(20): Contao\FrontendIndex->run()
#19 {main}