Using variable in WordPress loop as criteria

You need an IN comparison and array if you want to match multiple values.

array (
  'key'     => 'sale_or_rent',
  'compare' => 'IN',
  'value'   => array('Sale', 'Rent'),
),

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)