There isn't sufficient information to reach a specific diagnosis. I would advise you to meet an orthopedician so that you can be examined and undergo the necessary investigations such as RFT, RA factor, X-Ray, etc to find the underlying cause of the problem and have it treated accordingly.
Next Steps
Follow the steps as advised
Health Tips
If condition persists or worsens visit the orthopedician at the earliest