Getting a custom post’s custom field based on another custom post’s custom field select

Could it be that:

<?php get_post_meta($office_id, "latitude", true); ?>

Should be

<?php echo get_post_meta($office_id, "latitude", true); ?>

AKA a missing echo statement?

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