While the careers of Paris Hilton, Miley Cyrus, and Lindsay Lohan only got better after their scandalous pictures and movies leaks, it doesn’t work the same way for a politician.

That is a lesson that Canadian Ray Lam, a B.C. New Democratic Party candidate, learned the hard way. Racy Facebook photos of Lam taken at a Pride celebration four years ago forced the young gay politician to resign.

“An issue was made regarding inappropriate material on my private Facebook page. I regret this material and the associated comments that have now become public,” Ray Lam said in a prepared statement Sunday. “I do not want this to be a distraction in the election campaign and have advised the party that I am stepping down.”

The pictures in question include one of Lam with his hand cupping the breast of a clothed woman. Another photo showed him with his pants around his knees while another man and woman playfully and suggestively tugged at his underwear.