diff --git a/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs b/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs
index b343a3f..5ce6fa5 100644
--- a/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs
@@ -102,7 +102,7 @@ namespace Banshee.Playlist
 
             remove_track_range_command = new HyenaSqliteCommand (@"
                 DELETE FROM CorePlaylistEntries WHERE PlaylistID = ? AND
-                    EntryID IN (SELECT ItemID FROM CoreCache
+                    TrackID IN (SELECT TrackID FROM CoreCache
                         WHERE ModelID = ? LIMIT ?, ?)"
             );
         }
