title: TypeError: filter_by() takes 1 positional argument but 2 were given
body: <p>I have a list of tasks that I'd like to get minus the ones I've already allocated.  I'm passing in a list and it's giving me an error:</p>
  
  <blockquote>
    <p>TypeError: filter_by() takes 1 positional argument but 2 were given.</p>
  </blockquote>
  
  <p>I tested passing in a single integer and it works just fine. What am I doing wrong?</p>
  
  <p>Code below:</p>
  
  <pre><code># models/task.py:
  @classmethod
  def find_unallocated_tasks(cls, task_ids):
  return cls.query.filter_by(
      (id != _id).all() for _id in task_ids)
  
  
  # resources/task.py:
  class UnallocatedTasks(Resource):
  parser = reqparse.RequestParser()
  parser.add_argument('allocated_task_ids')
  def get(self):
      data = UnallocatedTasks.parser.parse_args()
      id_list = data["allocated_task_ids"].split(",")
  TaskModel.find_unallocated_tasks(id_list)
  </code></pre>
  
  <p>postman (GET):</p>
  
  <pre><code>{"allocated_task_ids": "1,2,3"}
  </code></pre>