Add distinct for biography to prevent duplicate classes.

This happened when teachers taught for multiple sections or hours, in the teacher biography page.
Merge pull request #753 from learning-unlimited/issue738

Add distinct for biography to prevent duplicate classes.