fixed accidental deletion of FROM in course query