Add "CT Compare" Widget via Appearance > Widgets > Compare.

SELECT * FROM wp_res WHERE idx_mls_status != 'DeListed' AND (sale_or_rent = 'For Rent Only' OR sale_or_rent = 'For Rent' OR ( current_price < '50000' AND sale_or_rent = 'For Sale or Rent' )) GROUP BY mls_number ORDER BY current_price DESC LIMIT 30 OFFSET 180