Fetch taxonomies by custom post type id array

Easiest way to find terms of many posts is to use wp_get_object_terms function

$your_post_ids = array(12, 13, 18, 22, 343, 5644);
$your_taxonomy = 'location' //you can set many as array

$terms = wp_get_object_terms ( $your_post_ids, $your_taxonomy);

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