Government database holds student sexual orientation info.

(Apichon_tee / Getty Images)

The Department for Education is holding named records detailing the sexual orientation and religious beliefs of more than 3 million students and graduates, thousands of whom were not told that their sensitive data had been shared.

Data obtained through a freedom of information request…