Index: /trunk/DNSDB.pm
===================================================================
--- /trunk/DNSDB.pm	(revision 577)
+++ /trunk/DNSDB.pm	(revision 578)
@@ -5151,5 +5151,5 @@
 
   $soasth = $dbh->prepare("SELECT host,type,val,distance,weight,port,ttl,record_id,location ".
-	"FROM records WHERE rdns_id=? AND type=6");
+	"FROM records WHERE domain_id=? AND type=6");
   $recsth = $dbh->prepare("SELECT host,type,val,distance,weight,port,ttl,record_id,location,extract(epoch from stamp),expires,stampactive ".
 	"FROM records WHERE domain_id=? AND NOT type=6");	# Just exclude all types relating to rDNS
