Post Query not working

For the type of your $catId, you must use the cat parameter.

You can check here the differents parameters allowed.

cat (int) – use category id.

category_name (string) – use category slug.

category__and (array) – use category id.

category__in (array) – use category id.

category__not_in (array) – use category id.

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