SELECT *,
SUBSTRING_INDEX(SUBSTRING_INDEX(IFNULL(t.bz11,''),',',help_topic_id+1),',',-1) gp_idserie
FROM table t INNER JOIN mysql.help_topic b ON b.help_topic_id < (LENGTH(IFNULL(t.bz11,'')) - LENGTH(REPLACE(IFNULL(t.bz11,''), ',', '')) + 1) and interface_status =0;