title: MySQLdb - Check if row exists Python
body: <p>I am trying to check if a row exist with the same Name my database with python and can't quite get it here is what I am trying: (I know the connection is wokring)</p>
  
  <pre><code>try:
      cursor.execute("SELECT Name, COUNT(*) FROM Item_Info WHERE Name = %s GROUP BY Name"), (item_name)
  catch:
       print "it does not exist"
  </code></pre>
  
  <p>Can someone help me out here </p>
  
  <p>Thanks</p>