diff --git a/application/controllers/mockup/resumeindividufacelift/Resume.php b/application/controllers/mockup/resumeindividufacelift/Resume.php index 1e7ec7a5..4c1219e7 100644 --- a/application/controllers/mockup/resumeindividufacelift/Resume.php +++ b/application/controllers/mockup/resumeindividufacelift/Resume.php @@ -378,15 +378,8 @@ class Resume extends MY_Controller kelainans.Mcu_KelainanName, kelainans.Mcu_KelainanClasification, kelainans.Mcu_KelainanGroupName, - IFNULL(SUBSTRING_INDEX( - GROUP_CONCAT( - IFNULL(kelainans.Mcu_FitnessCategoryName, '') - ORDER BY IFNULL(kelainans.Mcu_FitnessCategoryLevel, -1) DESC - SEPARATOR '||' - ), - '||', - 1 - ), '') AS Mcu_FitnessCategoryName + IFNULL(MIN(kelainans.Mcu_FitnessCategoryLevel), 0) AS Mcu_FitnessCategoryLevel, + IFNULL(MIN(NULLIF(kelainans.Mcu_FitnessCategoryName, '')), '') AS Mcu_FitnessCategoryName FROM ( SELECT kl.T_KelainanLabID AS id,