Running a custom query inside another cpt single and trying to grab a variable

Does this work?

global $post;   // make sure the post object is available
$slug = $post->post_name;  // get the slug

// insert the slug into your query
$args = array(
  'post_type' => 'client_prop',
  'posts_per_page' => 10,
  'tax_query' => array(
   array(
    'taxonomy' => 'prop_neighborhood',
    'field' => 'slug',
    'terms' => $slug,
    )
  )
);

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