Add category to body class

This late in the process you should be able to rely on context set up, even outside of loop.

On top of my head something like this should work:

$categories = wp_get_post_categories( get_the_ID(), [ 'fields' => 'names' ] );

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