tag__in does not return posts

Re: my comment, I am assuming ‘item_tags’ are a custom taxonomy. tag__in only works for WP Core’s Tag taxonomy. Replace your tag__in line with the following:

'tax_query' => array(
    array(
        'taxonomy' => 'item_tags',
        'field' => 'id',
        'terms' => $tag_ids
        )
    )

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