Notice: Trying to get property 'id' of non-object in /home/cocktailnara/phalcon/app/controllers/IndexController.php on line 200
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at end of input LINE 10: where id = ^
#0 [internal function]: PDOStatement->execute()
#1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, Array)
#2 /home/cocktailnara/phalcon/app/controllers/ControllerBase.php(40): Phalcon\Db\Adapter\Pdo->query('\r\nselect \r\n  id...')
#3 /home/cocktailnara/phalcon/app/controllers/IndexController.php(203): ControllerBase->executeQuery(Array, NULL)
#4 [internal function]: IndexController->wikiAction()
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(IndexController), 'wikiAction', Array)
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /home/cocktailnara/phalcon/public/index.php(56): Phalcon\Mvc\Application->handle()
#8 {main}