Some actions crash LMS when dealing with more than 999 playlists

SQLite can't handle more than 999 arguments in a query. Use
search_literal with the actual SQL query string instead of using that
SQL query's result list of IDs.