select cat from directory where is_archived=0 and site_url != '' and (city='sharpsburg' OR city='sharpsburg') and (state='GA' OR state='Georgia')
select cat from directory where is_archived=0 and site_url != '' and (city='sharpsburg' OR city='sharpsburg') and (state='GA' OR state='Georgia')
union
select cat from affiliate_directory where is_archived=0 and site_url != '' and (FIND_IN_SET('sharpsburg', city) OR city='all' ) and (state='GA' OR state='Georgia' OR state='all')