Rule #1: Always check the pinout.

What's on PORTB.5?
Yeah right AN13... Now check the datasheet page 155 (ADCON1 register) to see how to disable the ADC on this pin.