Hi, Welcome to Health care magic forum.
As you describe, it appears that you are getting the
knee pain depending upon the food you take.
It may be an osteo arthritic change due to age,I advise you to consult an orthopedic surgeon for diagnosis.
You may need to have an M.R.I. for diagnosis.
I usually prescribe to my patient with such symptoms nuerotropic injections for 10 consecutive days and then periodically. suppliments of calcium, vitaminD, and pain killers when needed.
Avoid taking potato, other tubers, tomato, egg, chicken, and sea foods when you dont want to have the pain.
wishing for a quick and complete recovery. Thank you.