WordPress Query by Category using Post Slug

function namefunctions(){
$args = array(
‘post_type’ => ‘CPT’,
‘posts_per_page’ => -1,
);
$recetax = new wp_query($args);
while ( $recetax->have_posts()): $recetax->the_post(); ?>

/* your content of ctp*/

<?php endwhile; wp_reset_query();  

}

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