I use wpdb to connect to a custom db, then I use the following query:
$my_row = $wpdb_c->get_results("SELECT Employee.Name, Area.Name, Area.Region FROM Area INNER JOIN Employee ON Area.ID = Employee.Area_ID WHERE Employee.ID = " . get_the_ID());
How do i refer to each of the Name columns from the Employee and Area tables? I tried $my_row[0]->Area.Name but it only returned the string 'Name'.