After lurking here for about 6 months I've have finally decided to join in (since I suck so bad and need the help), so thanks in advance and here goes.....

Here's a hand from last night...

PokerStars No-Limit Hold'em, $0.10 BB (8 handed) Hand History Converter Tool from FlopTurnRiver.com (Format: FlopTurnRiver)

UTG ($6.95)
UTG+1 ($19.75)
MP1 ($10)
MP2 ($8.15)
Hero ($12.15)
Button ($10)
SB ($5.90)
BB ($10.90)

Preflop: Hero is CO with 4, 4. MP1 posts a blind of $0.10.
UTG calls $0.10, 1 fold, MP1 (poster) checks, 1 fold, Hero calls $0.10, Button calls $0.10, SB completes, BB checks.

Flop: ($0.60) 5, 4, 7 (6 players)
SB checks, BB bets $0.3, UTG folds, MP1 folds, Hero raises to $1, Button raises to $9.9, SB calls $5.80 (All-In), BB folds, Hero calls $8.90.

Turn: ($26.50) Q (3 players, 1 all-in)

River: ($26.50) Q (3 players, 1 all-in)

Final Pot: $26.50

I just wanted to confirm I was justified in the AI call, - if I'm calculating correctly, with a set against a flopped str8 I have 10 outs to beat it and need 1.6:1 odds to call. I wasn't going to call the first AI, but when the second guy pushed I thought that gave me the right odds.

Was that the right call, or does the possibility of another set make this a -EV call? (and would I have been correct to fold to the first AI if the second guy folded instead of pushed?)