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 'AND (status = 3 OR status = 1 OR status = 2)' at line 1 (SELECT * FROM tl_aid_cas_bookings WHERE tl_aid_cas_bookings.pid = AND (status = 3 OR status = 1 OR status = 2)) 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/core/library/Contao/Model.php(1082): Contao\Database\Statement->execute(NULL)
#2 system/modules/core/library/Contao/Model.php(958): Contao\Model::find(Array)
#3 system/modules/aid_cas/models/AidCasBookingsModel.php(22): Contao\Model::findBy(Array, NULL)
#4 system/modules/aid_cas/modules/ModuleAidCasSailReader.php(89): aiDESIGNER\cas\AidCasBookingsModel::findBookings(NULL)
#5 system/modules/core/modules/Module.php(287): aiDESIGNER\cas\ModuleAidCasSailReader->compile()
#6 system/modules/aid_cas/modules/ModuleAidCasSailReader.php(64): Contao\Module->generate()
#7 system/modules/core/elements/ContentModule.php(59): aiDESIGNER\cas\ModuleAidCasSailReader->generate()
#8 system/modules/core/library/Contao/Controller.php(484): Contao\ContentModule->generate()
#9 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#10 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#11 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#12 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
#13 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#14 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#15 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#16 index.php(20): Contao\FrontendIndex->run()
#17 {main}