Shortcode works from functions.php but not from included file

Shortcode works from functions.php but not from included file

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