SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query [ SELECT *, (SELECT `f`.`dep_fot_file_name` FROM `rw1lv_departamentos_fotos` AS `f` WHERE `f`.`dep_fot_dep_id` = `d`.`dep_id` ORDER BY `f`.`dep_fot_file_ordem` ASC LIMIT 1) AS `dep_fot_file_name` FROM `rw1lv_departamentos` AS `d` INNER JOIN `rw1lv_nossaslojas` AS `l` ON `l`.`nos_dep_id` = `d`.`dep_id` WHERE `d`.`dep_ativado` = 1 AND `d`.`dep_id` = '34' GROUP BY `d`.`dep_id` ORDER BY `d`.`dep_nome` ASC ]