At school I was taught that the gravitational field inside a solid sphere is equivalent to being on the surface of a smaller sphere at the same centre, ie ignore all the matter at a radius 'above' your position. (That was a decade or 3 ago though so you would want to verify this for yourself.) Also see my comment above.