Red Dwarf
Back in the Red: Part 2
S8 E2:
When the captain invites Rimmer to dinner, Rimmer douses himself with a sexual magnetism virus that causes the female crew to find him irresistible. Lister, Kochanski and the Cat are forced to stand trial.