#select SUBSTRING_INDEX('1,2', ',', 1); SELECT * FROM dis_disease WHERE id = ( SELECT SUBSTRING_INDEX(t.disease_ids, ',', 1) FROM crm_diagnosis t WHERE t.id = 547 )
disease_ids
1,2,3,4
#select SUBSTRING_INDEX('1,2', ',', 1); SELECT * FROM dis_disease WHERE id = ( SELECT SUBSTRING_INDEX(t.disease_ids, ',', 1) FROM crm_diagnosis t WHERE t.id = 547 )
disease_ids
1,2,3,4