People are not symmetrical along their length
Saddle height, angle, fore/aft position, cleat position, q-factor (your stance on the bike) all play a factor in knee pain, but what would help is if you told us where your knee hurts. Different parts can mean different issues.