query (" ( SELECT hlstats_Actions.code, hlstats_Actions.description, COUNT(hlstats_Events_PlayerActions.id) AS obj_count, SUM(hlstats_Events_PlayerActions.bonus) AS obj_bonus FROM hlstats_Actions LEFT JOIN hlstats_Events_PlayerActions ON hlstats_Events_PlayerActions.actionId = hlstats_Actions.id WHERE hlstats_Events_PlayerActions.playerId = $player GROUP BY hlstats_Actions.id ) UNION ALL ( SELECT hlstats_Actions.code, hlstats_Actions.description, COUNT(hlstats_Events_PlayerPlayerActions.id) AS obj_count, SUM(hlstats_Events_PlayerPlayerActions.bonus) AS obj_bonus FROM hlstats_Actions LEFT JOIN hlstats_Events_PlayerPlayerActions ON hlstats_Events_PlayerPlayerActions.actionId = hlstats_Actions.id WHERE hlstats_Events_PlayerPlayerActions.playerId = $player GROUP BY hlstats_Actions.id ) ORDER BY $tblPlayerActions->sort $tblPlayerActions->sortorder, $tblPlayerActions->sort2 $tblPlayerActions->sortorder "); $numitems = $db->num_rows($result); if ($numitems > 0) { ?>
draw($result, $numitems, 95); ?>