Shortcode for custom query not returning results when attributes are added

Been a while since I used shortcode_atts but should $categories be $category? also, make sure it’s returning the correct type e.g. string or int and you’re searching for a valid slug.

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