Migrating mysqli query to wp_query

On the url below you can find all the information that you need regarding wp_query.

https://codex.wordpress.org/Class_Reference/WP_Query

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