title: Trying to create a simple select by attribute script based on an input
body: <p>Trying to create a simple select by attribute script that will select based upon an input in a tool, in ARC Toolbox. My data is stored in a File database in a Feature Dataset called "Control", Feature Class is called "Monuments". Field is called "Township".</p>
  
  <p>Here's the code</p>
  
  <pre><code># Select Features base on Township
  
  import arcpy 
  
  mxd = arcpy.mapping.MapDocument("CURRENT")
  
  Monuments = arcpy.mapping.ListLayers(mxd, "Monuments") [0]
  
  TWN = arcpy.GetParameterAsText(0)
  
  arcpy.SelectLayerByAttribute_management(Monuments, "NEW_SELECTION", "Monuments.Township" = TWN)
  </code></pre>
  
  <p>But getting Error message. "Keyword can't be an expression."</p>
  
  <p>Any thoughts... Thanks in advance.</p>