I have two queries looking for most recent type (1 result):
-- MOST_RECENT_TYPE_A SELECT @MOST_RECENT_TYPE_A := type AS most_recent_type_a