Meanwhile, the inverse associations between magnesium intake and risk of vitamin D insufficiency were statistically significant only among people at high risk of vitamin D insufficiency, such as those whose samples were collected during winter (at southern latitude), those with vitamin D intake below the median, women, non-Hispanic Blacks, obese individuals or those with the PTH levels in the highest tertile. This evidence concerns the gene PTH and vitamin D deficiency.