diff -r 2a10febd6af9 -r 4708e6b152a0 inc/record.inc.php --- a/inc/record.inc.php Sun May 18 12:28:16 2008 +0000 +++ b/inc/record.inc.php Mon May 19 10:20:44 2008 +0000 @@ -963,7 +963,7 @@ if ($perm == "own") { $sql_add_from = ", zones "; - $sql_add_where = " AND zones.domain_id = record.id AND zones.owner = " . $db->quote($_SESSION['userid']); + $sql_add_where = " AND zones.domain_id = records.domain_id AND zones.owner = " . $db->quote($_SESSION['userid']); } $query = "SELECT