diff --git a/resolvers/author.py b/resolvers/author.py index 6791e7d7..635a9bf8 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -115,7 +115,7 @@ async def load_authors_by(_, _info, by, limit, offset): authors_query = ( authors_query .join(ShoutAuthor) - .join(ShoutTopic, ShoutAuthor.topic == ShoutTopic.id) + .join(ShoutTopic, ShoutAuthor.shout == ShoutTopic.shout) .join(Topic, ShoutTopic.topic == Topic.id) .filter(Topic.slug == str(by["topic"])) )