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 'ELSE s.sparte END) = sparte.id JOIN tl_schwerin_art AS art ON ' at line 19 (SELECT MIN(v.date) date, s.*, sparte.title AS sparte_title, ort.title AS ortname, tl_files.path as image, art.title as art, IF (art.show_in_schedule = '1', art.title, '') AS marker, IF (art.show_as_button = '1', art.title, 'Tickets') AS ticket_button FROM tl_schwerin_veranstaltung as v INNER JOIN tl_schwerin_stueck as s ON v.stueck = s.id INNER JOIN tl_schwerin_sparte AS sparte ON (CASE WHEN s.sparte = 1 THEN 2 WHEN s.sparte = 10 THEN 2 WHEN s.sparte = 14 THEN ELSE s.sparte END) = sparte.id JOIN tl_schwerin_art AS art ON v.type = art.id JOIN tl_schwerin_ort AS ort ON v.location = ort.id LEFT JOIN tl_schwerin_medien ON tl_schwerin_medien.pid = s.id AND tl_schwerin_medien.type = 'bild' LEFT JOIN tl_files ON tl_files.uuid = tl_schwerin_medien.singleSRC WHERE v.published = 1 AND s.published = 1 AND sparte.published = 1 AND v.date < '1660428000' AND v.date > 1642677630 AND v.status = 'normal' GROUP BY s.id, sparte_title ORDER BY date) 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/x_schwerin_2021/elements/ContentProduktionen.php(249): Contao\Database\Statement->execute('1660428000', 1642677630)
#2 system/modules/x_schwerin_2021/elements/ContentProduktionen.php(159): LMF\MST2021\Elements\ContentProduktionen->renderProduktionListe(1642677630, '1660428000', '1628978400')
#3 system/modules/core/elements/ContentElement.php(265): LMF\MST2021\Elements\ContentProduktionen->compile()
#4 system/modules/x_schwerin_2021/elements/ContentProduktionen.php(139): Contao\ContentElement->generate()
#5 system/modules/core/library/Contao/Controller.php(484): LMF\MST2021\Elements\ContentProduktionen->generate()
#6 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#7 system/modules/tags/modules/ModuleArticle.php(26): Contao\ModuleArticle->compile()
#8 system/modules/core/modules/Module.php(287): Aurealis\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(29): Contao\FrontendIndex->run()
#15 {main}