Query post if has two of the categories

You need to edit line 7.

'category__and' => array(117,123),

The category__and parameter doesn’t use a string for the category IDs. Write the array like this:

    'category__and' => array(
        '117',
        '123'
    )
);

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