先生の事好きですか here means "do (you all) like (your/the) teacher?" 先生 means teacher and 事 means event. So does 先生の事 means "event of teacher"? Or precisely "the teaching of the teacher"? Then it would mean the "lesson" is the one to be liked then, not the teacher.