diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 052c4ef8c9..46c6d55200 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -5013,7 +5013,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type if (query.Limit > 0) { - commandText += "LIMIT " + query.Limit; + commandText += " LIMIT " + query.Limit; } using (var connection = GetConnection(true))