Repeating post how to solve this

I found the solution. I remove this $paged = (get_query_var(‘page‌​’)) ? get_query_var(‘page’‌​) : 1; from the query now its working fine without repeating the posts.

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