get_avatar won’t show uploaded avatar, only default gravatar

And of course as soon as I post the question, I find the answer.

slaps forehead

<?php
        global $current_user;
        get_currentuserinfo();
        echo get_avatar( $current_user->ID, 48 );
 ?>

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