get an attachment’s media tags or check if it has a media tag?

Use the plugin Media Tags. It has lot of useful features, including bulk administration and roles management. It is translatable or translated too.

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