Custom WP_Query for current category (in category.php)?

Try referencing the cat query variable like so:

$custom_query = new WP_Query( 
    array( 
        'cat' => get_query_var('cat') 
    ) 
);

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