if(!check_perms('site_recommend_own') && !check_perms('site_manage_recommendations')){ error(403); } show_header('Recommendations'); $DB->query("SELECT tr.GroupID, tr.UserID, u.Username, 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 LEFT JOIN users_main AS u ON u.ID=tr.UserID ORDER BY tr.Time DESC LIMIT 10 "); ?>