SELECT SUBSTRING_INDEX( SUBSTRING_INDEX( a.col, ‘,’, b.help_topic_id + 1 ), ‘,’,- 1 ) AS col
FROM (select _orderno as col from dual )a JOIN mysql.help_topic AS b ON b.help_topic_id < ( length( a.col ) - length( REPLACE ( a.col, ‘,’, ‘’ ) ) + 1 );