Will has_category be true is used on index and one of queried posts has the category?

Will has_category be true is used on index and one of queried posts has the category?

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