title: What's the difference between following two queries?
body: <p>What is the difference between first and second query?</p>
  
  <p><a href="https://i.stack.imgur.com/6T9SX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6T9SX.png" alt="enter image description here"></a></p>
  
  <p>First Query- Handwritten</p>
  
  <pre><code>select brandId from brand where brandName="Brand - A";
  </code></pre>
  
  <p>Second Query- query sent to be executed from python via 'pymysql'</p>
  
  <pre><code>select brandId from brand where brandName="Brand - A";
  </code></pre>
  
  <p>Exact python query which gave the error and led me to try the above:</p>
  
  <pre><code>Select brandId from brand where brandName like "%Brand – A%" and networkId=5803423295340544;
  </code></pre>
  
  <p>I don't understand why the second query is giving me an 'empty set'. Any ideas?</p>