Powergamers and achievements

(powergamers not working properly yet)
I need help with the "ORDER BY"
````
$znotePlayers = mysql_select_multi('SELECT * FROM `players` `a` JOIN `znote_players` `b` ON `a`.`id` = `b`.`id`  WHERE `a`.`group_id` < 2 ORDER BY `a`.`experience`-`b`.`exphist_lastexp` DESC LIMIT ' . $limit);
````
Currently it doesn't subtract the 'experience' from 'exphist_lastexp'
    ADD `onlinetime1` BIGINT( 255 ) NOT NULL DEFAULT '0',
ADD `onlinetime2` BIGINT( 255 ) NOT NULL DEFAULT '0',
ADD `onlinetime3` BIGINT( 255 ) NOT NULL DEFAULT '0',
ADD `onlinetime4` BIGINT( 255 ) NOT NULL DEFAULT '0',
ADD `onlinetime5` BIGINT( 255 ) NOT NULL DEFAULT '0',
ADD `onlinetime6` BIGINT( 255 ) NOT NULL DEFAULT '0',
ADD `onlinetime7` BIGINT( 255 ) NOT NULL DEFAULT '0',