Fixed query from ES types to mysql types bug.