OOPS

Syntax error, unexpected token AND, near to ' Inschrijfdatum>=20211202 AND datum>=20211202 AND tonen='y' AND user_id>1 ORDER BY datum', when parsing: SELECT [ClubAgenda].* FROM [ClubAgenda] WHERE mod_id= AND Inschrijfdatum>=20211202 AND datum>=20211202 AND tonen='y' AND user_id>1 ORDER BY datum (146)
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /home/tropkiso/app/controllers/ModulesController.php(267): Phalcon\Mvc\Model::find(Array)
#3 [internal function]: Iapp\Control\ModulesController->moduledataAction('brain-gym-101')
#4 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Iapp\Control\ModulesController), 'moduledataActio...', Array)
#5 [internal function]: Phalcon\Dispatcher->dispatch()
#6 /home/tropkiso/public_html/index.php(22): Phalcon\Mvc\Application->handle()
#7 {main}
13.4
786
21
54.80.173.217