how to add a badge on product based on filter?

how to add a badge on product based on filter?

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