$FeaturedMerchURL = ''; $FeaturedMerch = $Cache->get_value('featured_merch'); if ($FeaturedMerch === false) { $DB->query(' SELECT ProductID, Title, Image, ArtistID FROM featured_merch WHERE Ended = 0'); $FeaturedMerch = $DB->next_record(MYSQLI_ASSOC); $Cache->cache_value('featured_merch', $FeaturedMerch, 0); } if ($FeaturedMerch != null) { ?>