My right knee bends while I’m walking it happens anywhere

Patient: My right knee bends while I’m walking it happens anywhere at anytime but it’s not frequent i have a lot of health issues I’m diabetic, depression and anxiety I’m over weight lately im having problems with my right foot needle like pain in my toes what is the cause of this? Thanks

Doctor: