Welcome to Health Care Magic.
I have gone through your query. Using any of the anti-inflammatory medications can cause various side -effects if taken continuously like gastritis
and also affect the liver
functions, it would be preferred to take them symptomatically. As it is affecting you over 6 months, will recommend to get it examined from an orthopedician and confirm your diagnosis.