This was a recurring sketch where a character, played by Amanda Bynes, would have a conversation with a nameless person (often played by Drake Bell) and try to figure out their last name. The sketch was a hilarious showcase of Amanda Bynes's comedic timing and ability to improvise.
It's a very memorable bit from the show, so it's understandable why you'd remember "Last Name" even though it wasn't a real name.