List custom posts by custom taxonomy

Solution:

<?php $blocktaxonomy = wp_get_object_terms($post->ID, 'appearson');
$blocktaxonomy  = $blocktaxonomy [0];
query_posts( array( 'post_type' => 'block', 'appearson' => $blocktaxonomy -    >name ) );

if ( have_posts() ) : while ( have_posts() ) : the_post();
?>

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