Thanks for writing to us.
The pain in the joints that you are having is likely to be related to arthritis
. It can be associated with the nail changes that you have described. If NSAIDS are not helping then you need disease modifying agents after consulting a rheumatologist
I hope this information has been both informative and helpful for you.
Dr. Praveen Tayal