SELECT SQL_CALC_FOUND_ROWS  wp_hvbe690sq0_posts.ID
					 FROM wp_hvbe690sq0_posts  LEFT JOIN wp_hvbe690sq0_postmeta ON ( wp_hvbe690sq0_posts.ID = wp_hvbe690sq0_postmeta.post_id )  LEFT JOIN wp_hvbe690sq0_postmeta AS mt1 ON ( wp_hvbe690sq0_posts.ID = mt1.post_id )  LEFT JOIN wp_hvbe690sq0_postmeta AS mt2 ON ( wp_hvbe690sq0_posts.ID = mt2.post_id AND mt2.meta_key = 'ionline_property_listing_status_banner' )
					 WHERE 1=1  AND ( 
  ( wp_hvbe690sq0_postmeta.meta_key = 'ionline_property_listing_status_banner' AND wp_hvbe690sq0_postmeta.meta_value = 'Sold' ) 
  AND 
  ( 
    ( mt1.meta_key = 'ionline_property_listing_status_banner' AND mt1.meta_value != 'Withdrawn' ) 
    OR 
    mt2.post_id IS NULL
  )
) AND ((wp_hvbe690sq0_posts.post_type = 'buying_listings' AND (wp_hvbe690sq0_posts.post_status = 'publish' OR wp_hvbe690sq0_posts.post_status = 'acf-disabled')))
					 GROUP BY wp_hvbe690sq0_posts.ID
					 ORDER BY wp_hvbe690sq0_posts.post_date DESC
					 LIMIT 84, 12
Found 163 properties
Sort