WordPress posts for multiple years

You should use a date range instead by filtering posts_where:

function wpse_43397_where($where=""){
    $where .= " AND post_date >= '2008-01-01' AND post_date < '2010-12-31'";
    return $where;
}

add_filter('posts_where', 'wpse_43397_where');
$my_query = new WP_Query($args);
remove_filter('posts_where', 'wpse_43397_where');

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