OOPS

Syntax error, unexpected token ), near to ' AND tonen='y' ORDER BY achternaam', when parsing: SELECT nr,voornaam,voegsel,achternaam,plaats,mv FROM [CrmGastouders] WHERE locatie>=1 AND locatie IN () AND tonen='y' ORDER BY achternaam (138)
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /home/hegasbur/app/controllers/GastouderController.php(154): Phalcon\Mvc\Model::find(Array)
#3 [internal function]: Iapp\Control\GastouderController->gastoudersplaatsAction('Wijnbergen', 'zoek-een-gastou...')
#4 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Iapp\Control\GastouderController), 'gastoudersplaat...', Array)
#5 [internal function]: Phalcon\Dispatcher->dispatch()
#6 /home/hegasbur/public_html/index.php(30): Phalcon\Mvc\Application->handle()
#7 {main}
11.3 685 12