The sculpture was created at the turn of the 19th and 20th century. It was placed on the right side of the side altar, which originally invoked Saint John the Baptist. The motif of Teaching Mary illustrates a scene from Virgin Mary's childhood. Unfortunately, the author of the work remains unknown.
Maria Działo, "Sculpture of St. Anne teaching Mary", [in:] "The Sacred Lesser Poland Heritage", 2022, source: https://sdm.upjp2.edu.pl/en/works/sculpture-of-st-anne-teaching-mary