diff --git a/src/NzbDrone.Core/Datastore/BasicRepository.cs b/src/NzbDrone.Core/Datastore/BasicRepository.cs index 85b46fd64..e698795d2 100644 --- a/src/NzbDrone.Core/Datastore/BasicRepository.cs +++ b/src/NzbDrone.Core/Datastore/BasicRepository.cs @@ -83,7 +83,7 @@ public IEnumerable Get(IEnumerable ids) { var idList = ids.ToList(); var query = string.Format("Id IN ({0})", string.Join(",", idList)); - var result = Query.Where(query).ToList(); + var result = Query.Where(m => m.Id.In(idList)).ToList(); if (result.Count != idList.Count()) {