{"action":"opened","issue":{"url":"https://api.github.com/repos/ta2edchimp/BattleReporter/issues/48","labels_url":"https://api.github.com/repos/ta2edchimp/BattleReporter/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ta2edchimp/BattleReporter/issues/48/comments","events_url":"https://api.github.com/repos/ta2edchimp/BattleReporter/issues/48/events","html_url":"https://github.com/ta2edchimp/BattleReporter/issues/48","id":58149695,"number":48,"title":"Admin: Refetch killmails for missing lossvalues","user":{"login":"ta2edchimp","id":262436,"avatar_url":"https://avatars.githubusercontent.com/u/262436?v=3","gravatar_id":"","url":"https://api.github.com/users/ta2edchimp","html_url":"https://github.com/ta2edchimp","followers_url":"https://api.github.com/users/ta2edchimp/followers","following_url":"https://api.github.com/users/ta2edchimp/following{/other_user}","gists_url":"https://api.github.com/users/ta2edchimp/gists{/gist_id}","starred_url":"https://api.github.com/users/ta2edchimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta2edchimp/subscriptions","organizations_url":"https://api.github.com/users/ta2edchimp/orgs","repos_url":"https://api.github.com/users/ta2edchimp/repos","events_url":"https://api.github.com/users/ta2edchimp/events{/privacy}","received_events_url":"https://api.github.com/users/ta2edchimp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ta2edchimp/BattleReporter/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ta2edchimp/BattleReporter/milestones/3","labels_url":"https://api.github.com/repos/ta2edchimp/BattleReporter/milestones/3/labels","id":973592,"number":3,"title":"release 0.3","description":"","creator":{"login":"ta2edchimp","id":262436,"avatar_url":"https://avatars.githubusercontent.com/u/262436?v=3","gravatar_id":"","url":"https://api.github.com/users/ta2edchimp","html_url":"https://github.com/ta2edchimp","followers_url":"https://api.github.com/users/ta2edchimp/followers","following_url":"https://api.github.com/users/ta2edchimp/following{/other_user}","gists_url":"https://api.github.com/users/ta2edchimp/gists{/gist_id}","starred_url":"https://api.github.com/users/ta2edchimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta2edchimp/subscriptions","organizations_url":"https://api.github.com/users/ta2edchimp/orgs","repos_url":"https://api.github.com/users/ta2edchimp/repos","events_url":"https://api.github.com/users/ta2edchimp/events{/privacy}","received_events_url":"https://api.github.com/users/ta2edchimp/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":12,"state":"open","created_at":"2015-02-10T13:05:10Z","updated_at":"2015-02-19T00:08:23Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-02-19T00:08:23Z","updated_at":"2015-02-19T00:08:23Z","closed_at":null,"body":"In [`Admin.php:22`](https://github.com/ta2edchimp/BattleReporter/blob/master/classes/Admin.php#L22), change query according to extracted `brCorporations` and `brAlliances` table:\r\n\r\n```php\r\n$combatants = $db->query(\r\n    \"select c.*, ifnull(cc.corporationName, 'Unknown') as corporationName, ifnull(a.allianceName, '') as allianceName \" .\r\n    \"from invGroups as g right outer join invTypes as t \" .\r\n        \"on g.groupID = t.groupID \" .\r\n    \"right outer join brCombatants as c \" .\r\n        \"on t.typeID = c.shipTypeID \" .\r\n    \"left outer join brCorporations as cc \" .\r\n        \"on c.corporationID = cc.corporationID \" .\r\n    \"left outer join brAlliances as a \" .\r\n        \"on c.allianceID = a.allianceID \" .\t\t\t\r\n    \"where c.died = 1 and c.priceTag <= 0\"\r\n);\r\n```"}}