Journalist sentenced to two years in prison