diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 72de1f42..dd5b946c 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -746,7 +746,7 @@ JS; } if($where == "") return "(ClassName = 'File' OR ClassName = 'Image')"; $where = substr($where,0,strlen($where)-1); - $where = "ID NOT IN (" . $where . ") AND (ClassName = 'File' OR ClassName = 'Image')"; + $where = "`File`.ID NOT IN (" . $where . ") AND (ClassName = 'File' OR ClassName = 'Image')"; return $where; }