SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "" LINE 1: ... "public"."journal" WHERE "journal"."bitrix_id" = '' LIMIT $... ^
#0 [internal function]: PDOStatement->execute()
#1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, Array)
#2 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT "journal...', Array, Array)
#3 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, Array)
#4 [internal function]: Phalcon\Mvc\Model\Query->execute()
#5 /srv/phelma/nelma/app/common/models/Journal.php(471): Phalcon\Mvc\Model::findFirst(Array)
#6 /srv/phelma/nelma/app/modules/Frontend/controllers/JournalController.php(60): Nelma\Models\Journal::findFirst(Array)
#7 [internal function]: Nelma\Modules\Frontend\Controllers\JournalController->indexAction('index.html')
#8 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Nelma\Modules\Frontend\Controllers\JournalController), 'indexAction', Array)
#9 [internal function]: Phalcon\Dispatcher->dispatch()
#10 /srv/phelma/nelma/app/bootstrap_web.php(60): Phalcon\Mvc\Application->handle()
#11 /srv/phelma/nelma/public/index.php(2): require('/srv/phelma/nel...')
#12 {main}