Then you need to replace:
PHP Code:
$result = $db->query_read("SELECT title, usergroup.usergroupid, username, userid
FROM " . TABLE_PREFIX . "usergroup, " . TABLE_PREFIX . "user
WHERE ecdownloadpermissions & 1024 AND usergroup.usergroupid = user.usergroupid
");
With:
PHP Code:
$result = $db->query_read("SELECT username, userid
FROM " . TABLE_PREFIX . "user
WHERE userid = 2
");
Note: you need to replace this two times. I removed the usergroup parts from the query as they aren't necessary for this, so it's a bit lighter.
It should work, but I didn't test it ...