user = Database::fetch('users', false, ['id' => [$id, '=']]); // Decode the ranks json array $ranks = json_decode($this->user['ranks'], true); // Get the rows for all the ranks $this->ranks[] = Database::fetch('ranks', false, ['id' => [$id, '=']]); } }