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('companyuser', 'wemodel')
#4 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(App\Models\Entities\Companyuser), Object(Phalcon\Di\FactoryDefault))
#5 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(App\Models\Entities\Companyuser), 'app\\models\\enti...', 'companyuser', 'wemodel')
#6 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaDataIndex(Object(App\Models\Entities\Companyuser), 4)
#7 [internal function]: Phalcon\Mvc\Model\MetaData->getDataTypes(Object(App\Models\Entities\Companyuser))
#8 [internal function]: Phalcon\Mvc\Model::_invokeFinder('findFirstByid', Array)
#9 /var/www/html/wemodelbs/app/models/ModelcompanyInfo.php(40): Phalcon\Mvc\Model::__callStatic('findFirstByid', Array)
#10 /var/www/html/wemodelbs/app/models/WorksInfo.php(1169): ModelcompanyInfo->getComapnyUserInfo('907')
#11 /var/www/html/wemodelbs/app/models/WorksInfo.php(2095): WorksInfo->getPublicInfo('8810')
#12 /var/www/html/wemodelbs/app/models/WorksInfo.php(2116): WorksInfo->getmodelcompleteworklist(32466)
#13 /var/www/html/wemodelbs/app/controllers/Index/ModelsController.php(407): WorksInfo->getmodelcompleteworklistCt(32466)
#14 [internal function]: App\Controllers\Index\ModelsController->worksAction()
#15 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(App\Controllers\Index\ModelsController), 'worksAction', Array)
#16 [internal function]: Phalcon\Dispatcher->_dispatch()
#17 [internal function]: Phalcon\Dispatcher->dispatch()
#18 /var/www/html/wemodelbs/public/index.php(52): Phalcon\Mvc\Application->handle()
#19 {main}