wp_query ignoring custom post_status

I had the same issue and the reason was that I was running the query before registering the post status. So the post status was not registered and thus ignored in WP_Query

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