“(It was that Mary which anointed the Lord with ointment, and wiped his feet with her hair, whose brother Lazarus was sick.)”
King James Version (KJV)
11:2 It was that Mary who afterward anointed, &c. She was more known than her elder sister Martha, and as such is named before her.
Joh 11:2 It was [that] Mary. As there are several New Testament Marys, John points out this one by the well known incident of the anointing described in Joh 12:1-11.