SELECT `player`.`cid`, `player`.`k`, `player`.`d`, `gg`.`gg_id`, `gg`.`name`, `gg`.`img`, `cc`.`cid`, `cc`.`name`, `cc`.`class`, `cc`.`gg_id`
FROM `player`
LEFT JOIN `cc` ON `cc`.`cid` = `player`.`cid`
LEFT JOIN `gg` ON `gg`.`gg_id` = `cc`.`gg_id`
ORDER BY (`k`-`d`) DESC
i want to order by the K minus the D values, but im not getting it correctly what im a doing wrong? with or without DESC/ASC, its wrong