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('modelprofiledet...', 'wemodel')
#4 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(App\Models\Entities\Modelprofiledetail), Object(Phalcon\Di\FactoryDefault))
#5 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(App\Models\Entities\Modelprofiledetail), 'app\\models\\enti...', 'modelprofiledet...', 'wemodel')
#6 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaData(Object(App\Models\Entities\Modelprofiledetail))
#7 [internal function]: Phalcon\Mvc\Model\MetaData->hasAttribute(Object(App\Models\Entities\Modelprofiledetail), 'modeluser_id')
#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, true)
#11 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array, true)
#12 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array, true)
#13 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array)
#14 [internal function]: Phalcon\Mvc\Model\Query->_prepareSelect()
#15 [internal function]: Phalcon\Mvc\Model\Query->parse()
#16 [internal function]: Phalcon\Mvc\Model\Query->execute()
#17 /var/www/html/wemodelbs/app/models/entities/Modelprofiledetail.php(54): Phalcon\Mvc\Model::findFirst(Array)
#18 /var/www/html/wemodelbs/app/controllers/Index/ModelsController.php(159): App\Models\Entities\Modelprofiledetail::findFirst(Array)
#19 [internal function]: App\Controllers\Index\ModelsController->detailAction()
#20 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(App\Controllers\Index\ModelsController), 'detailAction', Array)
#21 [internal function]: Phalcon\Dispatcher->_dispatch()
#22 [internal function]: Phalcon\Dispatcher->dispatch()
#23 /var/www/html/wemodelbs/public/index.php(52): Phalcon\Mvc\Application->handle()
#24 {main}