vitamin D is synthesized from cholesterol and found in cholesterol rich food. Since a cholesterol is a precursor to vitamin D, inhibiting the synthesis of cholesterol will also inhibit the synthesis of vitamin D. Since sunlight is require to turn cholesterol into vitamin D.