PHOENIX-1535 Secondary local index casues Undefined column error with queries involving joins(Maryann Xue)