It was a split pot - the person with the TT must have had the most chips when the hand started.
Maybe it is 6+ holdem? In most short deck variations a set beats a straight.
This is "Short Deck" or "6+". In this game, in most variants, Set > Straight.TT wins the main pot with a set using TJQ to make a 5 card hand the 8 and 9 isnt in play so im assuming it's a different variant of holdem with different hand rankings ?.