Analog read from 4051 mux act strange

for(int i=1;i<5;i++) {
      tmpTotal = tmpTotal + lastAnalogValue[idx][i];
    }

Why are you wasting / ignoring element zero?