Display posts using post ID’s in an array

Get post thumbnail by id = get_the_post_thumbnail($id);

Get the title by id = get_the_title($id);

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