Pull a post based on a meta value in a custom post type

Try to wrap true with quotes

<?php 
$event =array(
'post_type' => 'Events',
'posts_per_page' => 1,
'meta_query' => array( array(
        'key' => 'front_event',
        'value' => 'true' ))
);?>

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