Ted's wife Vicky is also his best friend Andy's ex-girlfriend. Vicky first dated Andy in their university days before leaving him to be with his best friend Ted and they eventually get married.
Although Andy has made it clear to Ted that he has forgiven him for stealing his girlfriend many years ago, Andy is still not over Vicky. He wants her for himself and he will do all he can to sleep with his best friend's wife.