//* Check for duplicates where IP and hostname are the same
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and data = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->dataRecord["data"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
//* Check for duplicates where IP and hostname are the same
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);