Problems excluding a custom post-type from the loop

Try using the following before “if (have posts()..

$args = array(
    'post_type' => 'post',
    'orderby'   => 'rand',
    'showposts' => '1'
);
query_posts( $args );

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