query("SELECT tr.GroupID, tr.UserID, tg.Name, tg.ArtistID, ag.Name FROM torrents_recommended AS tr JOIN torrents_group AS tg ON tg.ID=tr.GroupID LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID ORDER BY tr.Time DESC LIMIT 10 "); ?>