How to include local menu based on page id?

You can also check if you are on page template with is_page_template function:

  if(is_page(array(18,52,22,20)) || is_page_template( 'blog.php' )) {
       //do your stuff
  }

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