title: Passing a parameter to SQL Server query using read_sql_query
body: <p>I have a one column list of Member_IDs called Member_ID_only2 similar to below:
  Member ID
  '123',
  '456',
  '758',
  .
  .
  .
   I'm trying to pass this as a list parms to a read_sql_query.  My code sample is below:</p>
  
  <p>'''
  '''
  import pandas as pd 
  import pyodbc </p>
  
  <pre><code>conn = pyodbc.connect()
  query = open(path + 'XXXXX_PROD.SQL', 'r')
  SQL_Query = pd.read_sql_query(query, conn, params=(Member_ID_only2,))
  My XXXXX_PROD.SQL has a where statement below:
  WHERE MEME_CK IN '%s'
  </code></pre>
  
  <p>'''
  I'm getting the error below:
  '''
      DatabaseError: Execution failed on sql '&lt;_io.TextIOWrapper 
      name='C:\Folder\XXXXX_PROD.SQL' mode='r' encoding='cp1252'>': The first argument 
   '''   to execute must be a string or unicode query.</p>
  
  <p>I'm not sure how to fix it.  Can someone help?
  Thank you for any help that I can get.</p>