array(7) {
  ["where"]=>
  string(717) " AND ( 
  wp_posts.ID NOT IN (
				SELECT object_id
				FROM wp_term_relationships
				WHERE term_taxonomy_id IN (7)
			) 
  AND 
  wp_term_relationships.term_taxonomy_id IN (2109)
) AND ( 
  wp_postmeta.meta_key = '_stock_status' 
  AND 
  ( 
    ( mt1.meta_key = '_stock_status' AND mt1.meta_value IN ('instock','onbackorder') )
  )
) AND ((wp_posts.post_type = 'product' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_status = 'cwg_mailsent' OR wp_posts.post_status = 'cwg_mailnotsent' OR wp_posts.post_status = 'cwg_subscribed' OR wp_posts.post_status = 'cwg_unsubscribed' OR wp_posts.post_status = 'cwg_converted' OR wp_posts.post_status = 'wc-boxnow-canceled')))"
  ["groupby"]=>
  string(11) "wp_posts.ID"
  ["join"]=>
  string(211) " LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )  INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id )"
  ["orderby"]=>
  string(51) "wp_postmeta.meta_value ASC, wp_posts.post_date DESC"
  ["distinct"]=>
  string(0) ""
  ["fields"]=>
  string(10) "wp_posts.*"
  ["limits"]=>
  string(11) "LIMIT 0, 20"
}