Hi, Welcome to Health care magic forum.
To decide whether it is orthopedic, vascular, or nerve
related age is the main factor. In teen age it may be due to slight dislocation, during exercises, work etc. In advanced age it may be due to cartilage
decay, in old age may be due to the osteo arthritis
changes probably in the starting stage.
In old age there might be some obstruction to the vessels or pressure on the nerves.
Take more of green leafy vegetables, pulses, sprouts,and
protein rich foods to prevent such changes.
Wishing for a quick and complete recovery. Thank you.