diff --git a/src/GraphQL/Resolver/QueryType.php b/src/GraphQL/Resolver/QueryType.php index bb89fa41..1e4977cf 100644 --- a/src/GraphQL/Resolver/QueryType.php +++ b/src/GraphQL/Resolver/QueryType.php @@ -438,10 +438,10 @@ static function ($fullpath) use ($db) { return $db->quote($tag); }, $args['tags']))); - $conditionParts[] = "o_id IN ( + $conditionParts[] = sprintf("%s IN ( SELECT cId FROM tags_assignment INNER JOIN tags ON tags.id = tags_assignment.tagid WHERE - ctype = 'object' AND LOWER(tags.name) IN (" . $tags . '))'; + ctype = 'object' AND LOWER(tags.name) IN (", Service::getVersionDependentDatabaseColumnName('o_id')) . $tags . '))'; } // paging