prova ad usare group_concat() con i nomi.

http://dev.mysql.com/doc/refman/5.0/...n_group-concat