Melanie & Carly

Sorry I must have missed an episode...but when did Carly realize, find out that it was Melanie that was her daughter and not Mia?