SELECT COUNT(*) AS c FROM ( SELECT COUNT(*) FROM (SELECT `colleges`.`id` FROM `colleges` WHERE `delReason`="" AND `colleges`.`subj_id`=34) a LEFT JOIN `lic_okso` ON `lic_okso`.`col_id` = a.`id` GROUP BY a.`id`) z
SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress