Trying to list years (for a filter) but not all years display

LOL– I had to just add posts_per_page in my $terms_year query. Leaving this up in case people need it…

$terms_year = array(
'post_type'         => array('publications'),
'posts_per_page'=>-1,
);

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