Outputting posts from post id´s in variable

An example:

$posts_ids = array(2,56,87,23,5); // this is an array of posts IDs

<?php $my_query = new WP_Query(array('post__in'=>$posts_ids)); ?>

<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <!-- Do stuff... -->
<?php endwhile; ?>

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