You can do it programmatically or just do it in the query. Here's a programmatic example (not your variable names.)
//make sure query sorts by user id.
$current_person = "";
while ($row = mysql_fetch_assoc($result)) {
if ($row['name'] != $current_person) {
//print name, email, etc. PLUS first affiliation
} else {
//print out affiliations
}
$current_person = $row['name'];
}
SELECT usr_id, name, email, GROUP_CONCAT(affiliation_id) FROM users INNER JOIN affiliations USING (usr_id) GROUP BY usr_id
See GROUP_CONCAT for more details.