Loop display only 5 posts

Add posts_per_page option in query with value -1.

Check in back end settings->reading, number of posts to display in loop, if not using posts_per_page.

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