title: How to give column name dynamically from string variable in sql alchemy filter?
body: <p>I want to create query in sql alchemy filter, but column is(dynamic) in variable/specified in variable.</p>
  
  <p>Original Query:</p>
  
  <pre><code>db_session.query(Notice).filter(Notice.subject.like("%" +query+ "%"))
  </code></pre>
  
  <p>I want to do query like this:</p>
  
  <pre><code>col_name='subject'
  db_session.query(Notice).filter(Notice.col_name.like("%" +query+ "%"))
  col_name='status'
  status=0
  db_session.query(Notice).filter(Notice.col_name != 1)
  </code></pre>