test:
string(433) "SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND ( ( ( wp_postmeta.meta_key = 'AddrCountry' AND wp_postmeta.meta_value IN ('') ) OR ( wp_postmeta.meta_key = 'AddrState' AND wp_postmeta.meta_value IN ('') ) ) ) AND wp_posts.post_type = 'global-feed' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value+0 DESC "