How to show related post with category DESC (ASC) IDs of ID current post

How to show related post with category DESC (ASC) IDs of ID current post

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