title: BadRequestError: cannot use a projection on a property with an equality filter
body: <p>In the snippet of code below when I try to perform these two lines I get this error:"
  BadRequestError: cannot use a projection on a property with an equality filter"</p>
  
  <pre><code>myname = self.response.get('state')
  </code></pre>
  
  <p>qy1=db.GqlQuery(*SELECT name,phoneNumber,description,city,state FROM Table1 WHERE state =:1",myname)</p>
  
  <p>I do have a for loop after this to iterate through the result set
  for i in qy1:
   (do some json dump)
  Now the state field is a StringProperty , and even doing str(myname) yields the same results. I have been looking all over they say you should do either what I have done before or to do  state IN 'some string', but if I change it to that I get an error about it not being a list. </p>
  
  <p>Any advice?</p>
  
  <p>full stack trace is :</p>
  
  <pre><code>INFO     2013-03-23 14:12:08,756 dev_appserver.py:3103] "POST /sendNearByPlaces.html HTTP/1.1" 500 -
  ERROR    2013-03-23 14:12:22,023 webapp2.py:1552] cannot use projection on a property with an equality filter
  Traceback (most recent call last):
    File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2\webapp2.py", line 1535, in __call__
      rv = self.handle_exception(request, response, e)
    File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2\webapp2.py", line 1529, in __call__
      rv = self.router.dispatch(request, response)
    File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2\webapp2.py", line 1278, in default_dispatcher
      return route.handler_adapter(request, response)
    File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2\webapp2.py", line 1102, in __call__
      return handler.dispatch()
    File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2\webapp2.py", line 572, in dispatch
      return self.handle_exception(e, self.app.debug)
    File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2\webapp2.py", line 570, in dispatch
      return method(*args, **kwargs)
    File "C:\Users\defiant\Desktop\PythonServer\bar.py", line 368, in post
      for i in qy1:
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\db\__init__.py", line 2326, in next
      return self.__model_class.from_entity(self.__iterator.next())
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_query.py", line 2892, in next
      next_batch = self.__batcher.next()
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_query.py", line 2754, in next
      return self.next_batch(self.AT_LEAST_ONE)
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_query.py", line 2791, in next_batch
      batch = self.__next_batch.get_result()
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 604, in get_result
      return self.__get_result_hook(self)
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_query.py", line 2528, in __query_result_hook
      self._batch_shared.conn.check_rpc_success(rpc)
    File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_rpc.py", line 1224, in check_rpc_success
      raise _ToDatastoreError(err)
  BadRequestError: cannot use projection on a property with an equality filter
  INFO     2013-03-23 14:12:22,075 dev_appserver.py:3103] "POST /sendNearByPlaces.html HTTP/1.1" 500 -
  </code></pre>