Before the flop: Stupid raise with weak hand utg. Just toss in the muck instead.
After the flop: Well, u got rivered. It happens. Imho, there's lots of stupid plays in this hand. Yours pre-flop, definitly 99 after, Ace were kind of comitted, but with the blinds being so low, but he should have realised he were downt to 2 outs with a check-raise and another call from a guy whom also checked. KQ

guy, well...he sure should have folded. Tempting with a huge pot like that, but he had a weak draw with paired board and so many players willing to put chips in the middle. Really stupid to put his existense in play so early with that draw...