Thank you. This is resolved. I was able to modify this to work for me. Sample of the code is below, in case it is helpful to anyone:
<?php
global $wpdb;
$term_id = get_queried_object_id();
$ids = $wpdb->get_col( "SELECT ID FROM my_custom_table WHERE cemetery_records_cemeteries = $term_id" );
$args = array(
'post_type' => 'cemetery-records',
'post__in' => $ids,
'posts_per_page'=>20,
'orderby'=>'last_name',
'order'=>'ASC',
'paged' => $paged
);
$loop = new WP_Query( $args )
?>