Warning: Missing argument 1 for module\home\Controllers\nmdh\ArticleController::photoaboutAction() in /opt/webdata/frz/app/home/controllers/nmdh/ArticleController.php on line 339

Notice: Undefined variable: id in /opt/webdata/frz/app/home/controllers/nmdh/ArticleController.php on line 342
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=/opt/webdata/frz/app/home/controllers/nmdh/ArticleController.php
Line=344
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /opt/webdata/frz/app/home/controllers/nmdh/ArticleController.php(344): Phalcon\Mvc\Model::findFirst(Array)
#3 [internal function]: module\home\Controllers\nmdh\ArticleController->photoaboutAction()
#4 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(module\home\Controllers\nmdh\ArticleController), 'photoaboutActio...', Array)
#5 [internal function]: Phalcon\Dispatcher->dispatch()
#6 /opt/webdata/frz/public/index.php(72): Phalcon\Mvc\Application->handle()
#7 {main}