Hello, you haven't mentioned about any trauma. If you haven't had any trauma then the problem might be due to degeneration of the cartilages of you joint. Which simply means wear and tear changes. Just get one X-ray done to confirm it. However the solution is only exercises. If you are obese reduce your weight, meet a physio for a proper strength training program, and get his advise to modify your activities so you can be pain free.
Next Steps
consult a physio
Health Tips
proper diagnosis by experts needed before you start with any intervention