- $contacts = $this->dba->select('apcontact', ['url'],
- ["`type` IN (?, ?) AND `url` IN (SELECT `url` FROM `contact` WHERE `uid` = ? AND `rel` = ?)",
- 'Application', 'Service', 0, Contact::FRIEND]);
- while ($contact = $this->dba->fetch($contacts)) {