(2,12731,-1)SELECT * FROM playlists WHERE (playlists.picture not in ('[likes]','[history]','[later]') or playlists.picture is null and (playlists.ptype <> 2)) AND (playlists.owner IN (2,12731,-1)) Playlists