Any time I have pain in my joints my lifting partner, who has a degree in sports medicine, has me take 800 mg Ibuprofin 4 times a day along with puting ice on it until the pain is gone. (with the ice, make sure you use a towel between your skin and the ice pack, I froze my skin last winter doing that, my skin burned for a week afterwards. I had to put cortizone cream on it and keep it bandaged up)
I also take MSM - 3000 mg ed (methylsulphonylmethane), glucosamine - 1500 mg ed, & Chondroitin - 1200 mg ed before I go lift.
Always remember to warm up the joint that you are gonna be working before you lift.
Good luck man.