<Tr> <Td_colspan="8"> Whilst searching for Hanna, the gang sees Mary Drake enter the police station . They learn of her identity and that she is the new owner of the Lost Woods resort . After tricking the girls with a doll made to look like a dead Hanna, "Uber A" informs them that they have 24 hours to hand over Charlotte's real killer or Hanna dies . The Liars and the others admit to believing that Alison killed Charlotte and they set out to find proof . Aria and Ezra search Alison's house, and are almost caught by Elliott . At the psychiatric hospital, Alison, in a drugged state - of - mind, seemingly admits to Emily that she killed Charlotte . After Aria recalls to have seen someone with a red jacket follow Charlotte the night she was murdered, Emily finds the jacket at Alison's house . Caleb gives the proof to' Uber A' in order to save Hanna . Hanna is locked up by "Uber A", but manages to escape . However, she later meets Mary . Elliott reveals his duplicity to Alison as he wants to punish her for killing Charlotte . </Td> </Tr> <Tr> <Th> 142 </Th> <Td> </Td> <Td> "Bedlam" </Td> <Td> Tawnia McKiernan </Td> <Td> Joseph Dougherty </Td> <Td> June 28, 2016 (2016 - 06 - 28) </Td> <Td> 2M7202 </Td> <Td> 1.24 </Td> </Tr> <Tr> <Td_colspan="8"> <P> After putting herself in danger, Hanna is rescued by Mary Drake . After Alison calls Emily about her current condition, this leads the Liars to grow suspicious of Elliott . Spencer and Caleb's relationship is on the rocks after Hanna tells Caleb about her feelings towards him . Liam is assigned to help Aria and Ezra on their book and after Aria breaks up with him, he unleashes on Ezra . Hanna breaks off her engagement with Jordan, and later signs a contract with Lucas to construct a fashion company . </P> "A.D." ending: "A.D." wheels Alison on a stretcher and adds medication to her intravenous fluids . </Td> </Tr> <P> After putting herself in danger, Hanna is rescued by Mary Drake . After Alison calls Emily about her current condition, this leads the Liars to grow suspicious of Elliott . Spencer and Caleb's relationship is on the rocks after Hanna tells Caleb about her feelings towards him . Liam is assigned to help Aria and Ezra on their book and after Aria breaks up with him, he unleashes on Ezra . Hanna breaks off her engagement with Jordan, and later signs a contract with Lucas to construct a fashion company . </P>

What happened in season 7 episode 12 of pretty little liars