fixed redundant query in pne_course_sequential_enabled that was causing errors