$DB->query("SELECT username FROM lastfm_users WHERE ID = '$UserID'"); if ($DB->record_count()) { list($LastFMUsername) = $DB->next_record(); $LastFMInfo = LastFM::get_user_info($LastFMUsername); $RecentTracks = LastFM::get_recent_tracks($LastFMUsername); ?>