diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index f79cf925b..b7abcc49d 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1368,7 +1368,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid } return DB::query ( - "SELECT COUNT(ID) FROM \"SiteTree\" WHERE \"URLSegment\" = '$this->URLSegment' $IDFilter $parentFilter" + "SELECT COUNT(\"ID\") FROM \"SiteTree\" WHERE \"URLSegment\" = '$this->URLSegment' $IDFilter $parentFilter" )->value() < 1; }