Change reference to join_table to use table_name