Not able to get random post

// Get a single random post from fetched posts   
  $post = $news[rand(0, 4)];    
  setup_postdata($post);     
   echo the_title();      
   echo the_intro(); // <- Custom function to retrieve custom field

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