You have not tell me your age. If you are above 50 this is mostly knee arthritis
. If your less then 50 then it is ligament or cartilage
damage. I would suggest you to get MRI
of the knee joint. This will give us proper diagnosis and after that it can be tackled according to that.