Retrieve query var within functions.php

function gqv() {
    echo get_query_var('user_login');
}
add_action('parse_query', 'gqv');

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