How do I query for a post by custom field?

$songQuery = new WP_Query('meta_query' => array(
    array(
        'key' => 'song-id',
        'value' => 'song id value here',
        'compare' => '='
    )
));

You can use above code to query with custom field then use loop to get the contents.

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