I think your only mistake was falling in love with Big Slick (A/K). It's not unusual in Poker that people play it, as it is an attractive hand to play, but in my mind A/K off suit is just another Ace Rag hand, and certainly not a hand I would go all-in with unless I was really struggling in the game, I much prefer playing any pocket pair over A/K.
In a Live game I had Pocket 9s on the BB and facing a raise from the player on the BTN and the SB calling I decided that the pot
odds, 5 to 1 were enough for me to see the Flop, which came 8,9,10,.
SB checked, I checked on the BB and the player on the BTN shoved all-in, now I was in a dilemma, especially when the SB called the all-in bet, because I had hit trips with the middle card, Did the BTN player make his hand or even the SB make a hand, someone could have pocket 10s or a straight hand, so do I Call, Fold or just re-shove?
As I took a little time to consider my move the dealer burned off the next card, and I said "Whoa! Hold on, I have yet to play" he stopped while I took a little longer and decided I needed to see the Turn, so I called, a 10, came on the Turn, and the SB checked, after a few seconds I decided I had invested too much and needed to shove all-in, after all if the 10 had not improved the SB hand it certainly improved my trips into a full house So I moved all-in.
The SB called and the cards were turned over:-
SB had Jack Queen suited and had made a straight.
BB (me) had 9/9 therefore a Full House.
BTN player A/K Another player falling in love with an Ace rag hand.
Had the BTN player have shoved all-in Pre-Flop It would be a coin toss on who would call, If any of us, the SB possibly, but without knowing what the flop was going to be I would have considered folding that hand, and me sat with a Pocket pair was perhaps a little frightening if I thought he could have a bigger pocket pair like A/A or even 10/10
That is the reason I always say "I do not have a favourite hand" and if I did, A/K would certainly not be top of my list.
Did you make a mistake? Probably not! because if you had shoved all-in Pre-flop I think the Pocket Queens would have called you in any case, you were just unfortunate in that the Queens hit Trips and is was game over, But that is what makes Poker so much Fun! Who knows? Maybe next time the flop might be 10, Jack, Queen, giving you the straight!