How do you create a query to hide all posts with a certain meta key, unless current user is the author of that post, without custom SQL?

How do you create a query to hide all posts with a certain meta key, unless current user is the author of that post, without custom SQL?

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