PhalconException : happened in Phalcon\Mvc\Model\Exception class
ExceptionMessage : Syntax error, unexpected token AND, near to ' reason=5 and addtime like '2018-04-20%'', when parsing: SELECT COUNT(*) AS rowcount FROM [Apps\Commons\Models\Score] WHERE uid= and reason=5 and addtime like '2018-04-20%' (115)
File=/mydata/www/dayinpai/apps/commons/models/Score.php Line=348

#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 /mydata/www/dayinpai/apps/commons/models/Score.php(348): Phalcon\Mvc\Model::count(Array)
#4 /mydata/www/dayinpai/apps/frontend/controllers/PersonController.php(1513): Apps\Commons\Models\Score->scorecount(NULL, 5, 1)
#5 [internal function]: Apps\Frontend\Controllers\PersonController->scorerecordsAction()
#6 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Apps\Frontend\Controllers\PersonController), 'scorerecordsAct...', Array)
#7 [internal function]: Phalcon\Dispatcher->dispatch()
#8 /mydata/www/dayinpai/public/index.php(82): Phalcon\Mvc\Application->handle()
#9 {main}