A function that returns true when the Author is a certain role is_author(admin)?

author_can() seems to fit.

Example:

if( author_can( get_the_ID(), 'administrator' ) ) 

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