Need to check why a "0" index is needed here, and how to deal with multiple join columns.