Bug in query. Cast the ints properly.