Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?

Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?

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