Array
(
    [where] =>  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 (3373)
) AND ( 
  wp_postmeta.meta_key = '_stock_status' 
  AND 
  ( 
    ( mt1.meta_key = '_stock_status' AND mt1.meta_value IN ('instock','onbackorder') ) 
    OR 
    ( mt1.meta_key = '_stock_status' AND mt1.meta_value = 'outofstock' )
  )
) 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] => wp_posts.ID
    [join] =>  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] => wp_postmeta.meta_value ASC, wp_posts.post_date DESC
    [distinct] => 
    [fields] => wp_posts.*
    [limits] => LIMIT 0, 20
)