I'm not sure how to answer this, sorry if it sounds rude but...
Why on earth are you allowing 2 people to have the same username?
Your usernames should be unique, so if someone attempts to register with a username that is already in use it will say no.
Anyway, your basically saying that someone has a name (forename surname type affair)? And you want the forename and surname (name1, name2) to be displayed on the page?