BJP MLA gets 7 years in prison