If the column is selected, it must appear in the GROUP BY clause, unless it is contained in an aggregate function (just like the error message says).
use Enlistment
go
SELECT Subjects.off_CODE, Subjects.subj_CODE, Subjects.description,
Subjects.unit, COUNT(Enlistment.off_CODE) FROM Enlistment, Subjects
WHERE Subjects.off_CODE = 11315
GROUP BY Subjects.off_CODE, Subjects.subj_CODE, Subjects.description,
Subjects.unit
So, in your example, the only field that is selected that does not have to be included in the GROUP BY clause is Enlistment.off_CODE because it is used in the aggregate function COUNT (COUNT(Enlistment.off_CODE)). All of the other fields must be included in the GROUP BY clause.