title: FireStore Multiple where query
body: <p>I have the following firestore query below. I am trying to perform multiple 
  where query on the Book collection. I want to filter by book name and book age range. However i am getting the following error </p>
  
  <p>"uncaught error in onsnapshot firebaseError: cursor position is outside the range of the original query" can someone please advise.</p>
  
  <pre><code>           const collectionRef = firebase.firestore().collection('Books')
  
             collectionRef.where('d.details.BookType',"==",BookType)
             collectionRef = collectionRef.where('d.details.bookage',"&lt;=",age)
             collectionRef = collectionRef.orderBy('d.details.bookage')
  
  
               const geoFirestore = new GeoFirestore(collectionRef)
  
                const geoQuery = geoFirestore.query({
                center: new firebase.firestore.GeoPoint(lat, long),
                radius: val,
  
                });
  
              geoQuery.on("key_entered",function(key, coords, distance) {   
  
  storeCoordinate(key,coords.coordinates._lat,coords.coordinates._long,newdata)
  });
  </code></pre>