select cat from directory where is_archived=0 and site_url != '' and (city='the pinehills' OR city='the_pinehills') and (state='MA' OR state='Massachusetts')
select cat from directory where is_archived=0 and site_url != '' and (city='the pinehills' OR city='the_pinehills') and (state='MA' OR state='Massachusetts')
union
select cat from affiliate_directory where is_archived=0 and site_url != '' and (FIND_IN_SET('the_pinehills', city) OR city='all' ) and (state='MA' OR state='Massachusetts' OR state='all')