I may have forgotten to change it back, but shouldn't this line be c.curricula.notifications.where()?
Since it is in the join query? Or will c.notifications still work?