Fixed rs1 and rs2 in mysql