As per ur complain it seems like it can be due to some of inflammatory arthropathy e.g. gout, RA etc.
Next Steps
get blood reports done to confirm/ rule out these disease
Health Tips
Consult orthopaedician in person or by video consultation for making correct diagnosis and treatment plan