$sql = "SELECT m.*,pp.*,p.id,p.originalpid,p.added,p.name,p.owner,p.favorite_cover,COUNT(pp.trackid)
FROM ".nobil_om_playlists." p
inner join ".nobil_om_playlist_pos." pp on pp.playlistid = p.id
inner join ".nobil_om_songs." m on m.id = pp.trackid
WHERE p.id=" . $this->id . "
group by pp.trackid ORDER BY pp.position ASC, pp.id DESC LIMIT " . $pl_songs_limit;