Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/NzbDrone.Core/Books/Repositories/BookRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@ SELECT MIN(e2.""Id"")
)
) e ON b.""Id"" = e.""BookId""
LEFT JOIN (
SELECT sbl.""BookId"", s.""Title"" as SeriesTitle
SELECT sbl.""BookId"", s.""Title"" as ""SeriesTitle""
FROM ""SeriesBookLink"" sbl
LEFT JOIN ""Series"" s ON sbl.""SeriesId"" = s.""Id""
INNER JOIN (
SELECT ""BookId"", MIN(""Id"") as MinId
SELECT ""BookId"", MIN(""Id"") as ""MinId""
FROM ""SeriesBookLink""
GROUP BY ""BookId""
) first_series ON sbl.""BookId"" = first_series.""BookId"" AND sbl.""Id"" = first_series.""MinId""
Expand Down