Trying to use a SQL query builder, known bug hasWon returns incorrect value