Why can’t I exclude private posts from this query?

I have to wonder if post_status=public would successfully exclude. That way it’s just targeting the public posts.

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