Making current_page_item work with wp_list_pages in sidebar on post pages

It sounds like you just need wp_reset_postdata() after you run any extra queries, and before you output your menu.

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