WP Query with custom taxonomy

You have to use your object like this :

while ( $query->have_posts() ) : $query->the_post();

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