Dont display post with no content

The content is a property of the post object, not of the query object.
Use $post or get_post() :

  if( '' !== get_post()->post_content ) {
    // do something
    }

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