Control over custom post types on a specific page

This way you can make a private listing

function posts_kind($query){

// page id 4173 show

if(is_page('4173')){

// category id 1 show  

$query->set('cat', 1);

return $query;
}

}

add_action('pre_get_posts','posts_kind');

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