Phalcon\Mvc\Model\Exception: Syntax error, unexpected token AND, near to ' state=1 LIMIT :APL0:', when parsing: SELECT id,title,pic,remark,arrid FROM [app\models\Photo] WHERE id= and state=1 LIMIT :APL0: (91)
File=/data/www/b2c/app/home/controllers/base/ArticleController.php
Line=209
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /data/www/b2c/app/home/controllers/base/ArticleController.php(209): Phalcon\Mvc\Model::findFirst(Array)
#3 [internal function]: module\home\Controllers\base\ArticleController->photoaboutAction()
#4 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(module\home\Controllers\hn_qxl\ArticleController), 'photoaboutActio...', Array)
#5 [internal function]: Phalcon\Dispatcher->dispatch()
#6 /data/www/b2c/public/index.php(77): Phalcon\Mvc\Application->handle()
#7 {main}