If I read or write to RA3-RA5 as analog inputs or outputs what affect does this have on AN0-AN2?
Surely you ment digital, the answer is none.

Suggest to use portA.3 as an output and portA.4 as an input since A4 is an open-drain type

Alberto