Warning: Invalid argument supplied for foreach(). when creating a WP_query

Solved., little things matter.

if ($termsArray) {

  foreach ( $termsArray as $term ) {
    $termsString .= $term->slug.' ';
  }  

}

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