Database->query('SELECT Id FROM Server WHERE User='.$UserId); while($DbRow = $DbResult->fetch_assoc()) { $Server = new Server($this->System, $DbRow['Id']); $Total += $Server->RealmCount(); } return($Total); } }