Answer:
"Sociology" is the broad discipline interested in the study of societies. "Sociology of education" is a subset of this, not unlike sociology of work, of gender, of the family, of development, of organizations, etc. It is a thematic subset of the broader discipline.