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=/mydata/www/dayinpai/apps/commons/models/Printhubs.php Line=65

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