$res = XDB::query("SELECT email, uid
FROM emails
WHERE email IN {?}", $other_mails);
foreach ($res->fetchAllRow() as $row) {
list ($email, $uid) = $row;
$res = XDB::query("SELECT email, uid
FROM emails
WHERE email IN {?}", $other_mails);
foreach ($res->fetchAllRow() as $row) {
list ($email, $uid) = $row;