I've been burned on similar situations a number of times. After he called your bet on the flop, I would have been worried that maybe he has a flush draw, maybe a queen, or maybe even trips. After calling your bet after the turn however, I would have been real worried that he had trips or AQ, like you. Hard to not bet when the A came up on the river though, but that raise to put you all-in, you had to figure he had trips or got the two pair aces and queens with you. Some people play pocket pairs for almost any amount, that's why I keep notes on people like that. I've looked at my notes on someone I haven't played against in a while and folded a hand because of what I wrote, and in the end it was the correct decision. But basically you had bad luck on that, but, it was only 50 cents, which may have been 1/20th of your $10 buy-in, but in real life, it's nothing.