diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/metadata.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index eddc3c169..896b7652f 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -472,7 +472,7 @@ $where[] = "m.value_id='$meta_v'"; } if ($site_guid > 0) - $where[] = "m.entity_guid = {$site_guid}"; + $where[] = "e.site_guid = {$site_guid}"; $query = "SELECT m.*, n.string as name, v.string as value from {$CONFIG->dbprefix}entities e JOIN {$CONFIG->dbprefix}metadata m on e.guid = m.entity_guid JOIN {$CONFIG->dbprefix}metastrings v on m.value_id = v.id JOIN {$CONFIG->dbprefix}metastrings n on m.name_id = n.id where"; foreach ($where as $w) |