select cat from directory where is_archived=0 and site_url != '' and (city='rafter j ranch' OR city='rafter_j_ranch') and (state='WY' OR state='Wyoming')
select cat from directory where is_archived=0 and site_url != '' and (city='rafter j ranch' OR city='rafter_j_ranch') and (state='WY' OR state='Wyoming')
union
select cat from affiliate_directory where is_archived=0 and site_url != '' and (FIND_IN_SET('rafter_j_ranch', city) OR city='all' ) and (state='WY' OR state='Wyoming' OR state='all')