How to display a number of posts based on a Advanced Custom Field (ACF)

Found an answer to my question using the ACF plugin get_field function (http://www.advancedcustomfields.com/resources/functions/get_field/) to retrieve the value of the custom field, save it as a variable and then use it as part of the query_post parameters:

<!-- Modify query object -->
<?php
$num_news = get_field("number_news", 523); // number of news items to feature
query_posts('showposts=".$num_news."&post_type=news'); 
?>
... rest of the code ...

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