I think it was in the first season or so.
I think you may be mistaken. In the first season, Quinn was pregnant, by Puck, another student. The teachers wife was faking pregnancy and wanted to pass off Quinns baby as hers, but I don’t recall an adult knocking up a student.