title: SQL LIKE in Django/Python
body: <p>I'm trying to run a query like this:</p>
  
  <pre><code>SELECT * 
  FROM 
      MyTable 
  WHERE 
      FirstName LIKE '%[user inputted value here]%' 
      OR 
      LastName LIKE '%[that same user inputted value]%' 
      AND 
      UserID = some number
  </code></pre>
  
  <p>When I run the query using cursor.execute(), the inputted values are going to be escaped and quoted, which is causing an incorrect query to run. Is there a way to prevent the user inputted values from being quoted?</p>
  
  <p>I'd prefer a solution not using Django's ORM, since the actual query is much more complicated than my example. </p>