Q: How to pull data from custom table to populate zustomizer setting/control select options

So i think I’ve found the answer to my own question. I modified the code in the original tablequerytest.php which queries the custom table and stores results from this:

<?php

global $wpdb; //Accessing WP Database (non-WP Table) use code below.

$results = $wpdb->get_results('SELECT alias FROM wp_revslider_sliders');

foreach ($results as $result) {
$revchoices = array("text" => $result, "value" => $result);
}

return $revchoices;

?>

To this:

<?php

global $wpdb;

    $query = 'select r.id, r.alias from wp_revslider_sliders r';
    $sliders = $wpdb->get_results($query, OBJECT);

    foreach($sliders as $slider)
    {
        $field[$slider->alias] = sprintf('%s',$slider->alias);
    }

    return $field;

?>