Show post if in category

Try in_category again, but also with specifying the post id:

 if (in_category('destaque', $post->ID)) {

     //do whatever you need to

 }

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