Sort posts by post views and consider meta key

The SQL looks correct. (You can substitute new WP_Query for get_posts and echo $my_posts->requests to see it.)

So I am going to guess that the sticky posts are making it look as though the sorting doesn’t work. Add 'ignore_sticky_posts' => true to your arguments.

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