Why does my output of get_the_ID() change after a wp_query?

Why does my output of get_the_ID() change after a wp_query?

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