No years to avoid and only a few issues that show up in these years. As with any used car purchase, finding the newest, nicest and best maintained car you can possibly afford is the best and ultimately cheapest way to go. Scroll through the last 5-10 pages of this forum and you'll see lots of threads related to your interest.
I want to die peacefully in my sleep like Grandpa did, not screaming like the people in his car...
Just FYI, you have to get 2010 and above for Bluetooth audio as well as a USB port in the center console. You will also need a 2010 and above if you have an I-Phone and want to be able to transfer all your contacts in order to do voice dials. Not that there aren't work-arounds for these, but it's much simpler if you get a 2010. In my opinion the navigation previous to 2010 isn't worth its weight in crap either. All depends on what's important to you though. As stated above, just make sure the car has had it's services done in a timely manner, and you really can't go wrong.