- $count = XDB::fetchOneCell('SELECT COUNT(*)
- FROM profile_addresses
- WHERE pid = {?} AND jobid = {?} AND groupid = {?}
- AND type = {?} AND text = {?}',
- $pid, $jobid, $groupid, $type, $req->address['text']);
- if ($count == 0) {
- $req->clean();
- }