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 John 12:1-11.