Get specific value from variable to use in query

Very simply use get_post()

$my_post = get_post( $account->ID );

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