Q: Problems with electrical doorlocks on 2001 Hyundai Santa Fe

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
for a while now i have been having problems with my door locks when i use the lock buttons or the keyless remote to lock the doors i then have to check to see which doors lock and which ones don't. And when i return to my car sometimes the driverside door will open with the keyless remote, but most of the time i have to use my key and this will at times set the alarm system off or as soon as i turn the key to unlock the door i will hear the doorlocks start clickin. What could this be is there an electrical short that could be causing this?
(1) Answer
I just bought a 2001 Santa Fe GL (160K miles) and am having the same issues, of course it didn't happen whwn I was looking at the car, bought from private party.
I will likely take to the dealer soon, but hope it is not alot of money to fix.