PhalconException : happened in Phalcon\Mvc\Model\Exception class
ExceptionMessage : Syntax error, unexpected token AND, near to ' status > 0 and roleid=2 LIMIT :APL0:', when parsing: SELECT [Apps\Commons\Models\UserValidate].* FROM [Apps\Commons\Models\UserValidate] WHERE uid= and status > 0 and roleid=2 LIMIT :APL0: (135)
File=/srv/www/dayinpai/apps/commons/models/Printhubs.php Line=60

#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /srv/www/dayinpai/apps/commons/models/Printhubs.php(60): Phalcon\Mvc\Model::findFirst(Array)
#3 /srv/www/dayinpai/apps/frontend/controllers/BusinessController.php(26): Apps\Commons\Models\Printhubs::checkUser(NULL)
#4 [internal function]: Apps\Frontend\Controllers\BusinessController->initialize()
#5 [internal function]: Phalcon\Dispatcher->_dispatch()
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /srv/www/dayinpai/public/index.php(82): Phalcon\Mvc\Application->handle()
#8 {main}