query("SELECT id FROM accounts WHERE to_vatid='$nip' OR to_vatid_unformated='$unip' AND deleted='0'"); echo $r->num_rows; return;