diff -r 55ed92aa7cf5 -r ebf8868e99f5 inc/record.inc.php --- a/inc/record.inc.php Tue Apr 17 19:43:24 2007 +0000 +++ b/inc/record.inc.php Tue Apr 17 21:18:14 2007 +0000 @@ -1054,7 +1054,7 @@ break; case '1' : - $sqlq = "SELECT `domains`.*, count(`records`.`id`) AS `numrec`, `zones`.`owner` + $sqlq = "SELECT `domains`.*, count(`records`.`id`) AS `numrec`, `zones`.`owner`, `records`.`domain_id` FROM `domains`, `records`, `zones` WHERE `domains`.`id` = `records`.`domain_id` AND `zones`.`domain_id` = `domains`.`id`