Adding pagination to custom WordPress function

    $paged = get_query_var('paged');
    $last_5_posts_query = new WP_Query( $args . $paged );

i didn’t test it but it may work.

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