PhalconException : happened in Phalcon\Mvc\Model\Exception class
ExceptionMessage : Syntax error, unexpected token ORDER, near to ' BY id desc LIMIT :APL0: OFFSET :APL1:', when parsing: SELECT [Apps\Commons\Models\Show].* FROM [Apps\Commons\Models\Show] WHERE checked = 2 and uid = ORDER BY id desc LIMIT :APL0: OFFSET :APL1: (140)
File=/srv/www/dayinpai/apps/commons/models/Show.php Line=119

#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /srv/www/dayinpai/apps/commons/models/Show.php(119): Phalcon\Mvc\Model::find(Array)
#3 /srv/www/dayinpai/apps/frontend/controllers/PersonController.php(616): Apps\Commons\Models\Show->getList(Array)
#4 [internal function]: Apps\Frontend\Controllers\PersonController->showsAction()
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Apps\Frontend\Controllers\PersonController), 'showsAction', Array)
#6 [internal function]: Phalcon\Dispatcher->_dispatch()
#7 [internal function]: Phalcon\Dispatcher->dispatch()
#8 /srv/www/dayinpai/public/index.php(82): Phalcon\Mvc\Application->handle()
#9 {main}