SELECT DISTINCT substring_index(substring_index(a.value, ' ', b.help_topic_id + 1), ' ',- 1) NAMEFROM t_cr_permission a JOIN mysql.help_topic b ON b.help_topic_id < (length(a.value) - length(REPLACE(a.value, ' ', '')) + 1)WHERE a.id =1