Display posts from catagories

cat needs to be an int or string, and you are passing an array. Either use category__in instead, which accepts an array, or convert $cat to a string of values with implode(',', $cat)

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