Well, it's been a while since I"ve tried to do this, but you could do a select like this:
SELECT *, concat( last_name, ",", first_name ) as full_name order by full_name;
Then you could loop through the results and only print lines which have the same full_name as the previous line.
Hope this helps.
-Rich