That is a boy with a red hat.He was(此处的is应用过去式的was) my deskmate last year.
The boy with a red hat on was my deskmate last year
The boy in a red hat was my deskmate last year.