Last post is not showing up

It’s not displaying, because there is ‘the_post()’ called after first ‘of ( have_posts() )’ (3rd line)

This call makes the loop move to the second post. So if you do the proper loop afterwards, the first post has already been done

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