title: MongoDB $and and $or query not returning any results
body: <p>I am running a query on MongoDB that is supposed to take whatever is in the time frame, and then if it finds the ports on each specified machine it returns that as well. I know the data is there but for some reason it's not getting returned. I have a feeling that I am doing something to the query that I'm not intending on doing. Any help is appreciated. </p>
  
  <p>Using Mongo 2.6.3</p>
  
  <p>Query:</p>
  
  <pre><code>{
    "$and":[
              {
                "time":{"$lt":"2014-08-20T14:53:12.425Z","$gt":"2014-08-20T14:50:12.425Z"}
              }
             ,
              {
               "$or":  [
                          {
                            "uid":"h118177apss3701","content.data.port":{"$in":["22","9101"]}
                          }, 
                          { 
                            "uid":"h118177dcss3701","content.data.port":{"$in":["22"]}
                          }
                      ]
              }
            ]
  
  }
  </code></pre>