This is the episode where the cocktail waitresses Homer and Ned drunkenly married in Vegas (season 10, episode 10 "Viva Ned Flanders") show up in Springfield. At the end of the episode, Homer gets his Vegas wife blackout drunk and tricks her into marrying Grandpa which ultimately convinces her to leave.