I\'ve got the following code below:
$db = $this->database[GDB]; $num_rows = $db->doQuery(\'SELECT TOP 100 strUserId, TotalTime, Nation, LoginDT FROM USERDA
Have you tried
SELECT TOP 100 strUserId, TotalTime + (time() + 7200 - LoginDT) as newTotalTime, Nation, LoginDT FROM USERDATA WHERE Authority IN(1, 2) ORDER BY newTotalTime DESC