Quest and filter posts by author ID on author page

Try 'author' => $curauth->ID instead of 'author_id'=> $curauth->ID since author_id is not a valid parameter.

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