Replacing raw database query to WP_Query

Finally found the answer.

Since I had not specified

            'orderby' => 'meta_value_num',
            'meta_key' => '_recommended',

The limit was being considered as count. I am not sure if am explaining this right

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