SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
#0 [internal function]: PDO->query('SELECT IF(COUNT...')
#1 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT IF(COUNT...', NULL, NULL)
#2 [internal function]: Phalcon\Db\Adapter->fetchOne('SELECT IF(COUNT...', 3)
#3 [internal function]: Phalcon\Db\Adapter->tableExists('shootinglocatio...', 'wemodel')
#4 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(App\Models\Entities\Shootinglocation), Object(Phalcon\Di\FactoryDefault))
#5 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(App\Models\Entities\Shootinglocation), 'app\\models\\enti...', 'shootinglocatio...', 'wemodel')
#6 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaData(Object(App\Models\Entities\Shootinglocation))
#7 [internal function]: Phalcon\Mvc\Model\MetaData->hasAttribute(Object(App\Models\Entities\Shootinglocation), 'option_value')
#8 [internal function]: Phalcon\Mvc\Model\Query->_getQualified(Array)
#9 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array, true)
#10 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array)
#11 [internal function]: Phalcon\Mvc\Model\Query->_prepareSelect()
#12 [internal function]: Phalcon\Mvc\Model\Query->parse()
#13 [internal function]: Phalcon\Mvc\Model\Query->execute()
#14 /var/www/html/wemodelbs/app/models/entities/Shootinglocation.php(28): Phalcon\Mvc\Model::findFirst(Array)
#15 /var/www/html/wemodelbs/app/models/ShotLocation.php(45): App\Models\Entities\Shootinglocation::findFirst(Array)
#16 /var/www/html/wemodelbs/app/models/WorksInfo.php(1042): ShotLocation->locationName('home')
#17 /var/www/html/wemodelbs/app/models/WorksInfo.php(2095): WorksInfo->getPublicInfo('3026')
#18 /var/www/html/wemodelbs/app/models/WorksInfo.php(2116): WorksInfo->getmodelcompleteworklist(1505)
#19 /var/www/html/wemodelbs/app/controllers/Index/ModelsController.php(407): WorksInfo->getmodelcompleteworklistCt(1505)
#20 [internal function]: App\Controllers\Index\ModelsController->worksAction()
#21 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(App\Controllers\Index\ModelsController), 'worksAction', Array)
#22 [internal function]: Phalcon\Dispatcher->_dispatch()
#23 [internal function]: Phalcon\Dispatcher->dispatch()
#24 /var/www/html/wemodelbs/public/index.php(52): Phalcon\Mvc\Application->handle()
#25 {main}