select cat from directory where is_archived=0 and site_url != '' and (city='south rosemary' OR city='south_rosemary') and (state='NC' OR state='North Carolina')
select cat from directory where is_archived=0 and site_url != '' and (city='south rosemary' OR city='south_rosemary') and (state='NC' OR state='North Carolina')
union
select cat from affiliate_directory where is_archived=0 and site_url != '' and (FIND_IN_SET('south_rosemary', city) OR city='all' ) and (state='NC' OR state='North Carolina' OR state='all')