Trying to get property of non-object in shortocde

You need to call global $post before using $post->ID, or better, use get_the_ID() instead.

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