difference between methods of query

query_posts() is just a wrapper for WP_Query that sets the $wp_query global.

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