How do I query a table?

Codex has extensive wpdb reference on how to perform different kinds of requests to database. However in most cases it is best to try to access data with available WP or theme/plugin code first.

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