A bestselling mystery writer has been sentenced to 3 1/2 to seven years in prison after he pleaded guilty to charges of possessing child sexual abuse material.