Possibly go to a pro shop and check to make sure that your bike is perfectly sized. I find that when I am riding normally I have the seat really high and I drop the seat when I hit the trails. Dropping the seat and forgetting to put it back up affects my knee greatly so I have to be really careful.
I do find spinning helps my knee though. Takes the pressure off and makes it feel good.