Conflict between wp_list_pages and get_posts – list pages not displaying

From comment:

Use wp_reset_query() after each loop to undo the changes made to global variables by setup_postdata().

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