1
SELECT t1.id, ( SELECT group_concat(id separator ', ') FROM table1 t2 WHERE t2.sponsor = t1.id ) AS children FROM table1 t1 GROUP BY t1.id