PhalconException : happened in Phalcon\Mvc\Model\Exception class
ExceptionMessage : Syntax error, unexpected token AND, near to ' reason=1', when parsing: SELECT COUNT(*) AS rowcount FROM [Apps\Commons\Models\Score] WHERE uid= and reason=1 (84)
File=/srv/www/dayinpai/apps/commons/models/Score.php Line=321

#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute(NULL, NULL)
#2 [internal function]: Phalcon\Mvc\Model::_groupResult('COUNT', 'rowcount', Array)
#3 /srv/www/dayinpai/apps/commons/models/Score.php(321): Phalcon\Mvc\Model::count(Array)
#4 /srv/www/dayinpai/apps/frontend/controllers/PersonController.php(1441): Apps\Commons\Models\Score->scorecount(NULL, 1)
#5 [internal function]: Apps\Frontend\Controllers\PersonController->rechangescoreAction()
#6 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Apps\Frontend\Controllers\PersonController), 'rechangescoreAc...', Array)
#7 [internal function]: Phalcon\Dispatcher->_dispatch()
#8 [internal function]: Phalcon\Dispatcher->dispatch()
#9 /srv/www/dayinpai/public/index.php(82): Phalcon\Mvc\Application->handle()
#10 {main}