title: Geometry functions in where clause
body: <p>I have a table <code>Objects</code> in MySQL:</p>
  
  <p><code>id int(11),
  objekt_x decimal(9,15),
  objekt_y decimal(9,15)</code></p>
  
  <p>Where objekt_x and objekt_y are objects longitude and latitude.
  In my application I create a bounding polygon with google maps, so I get polygon coordinates.</p>
  
  <p>Now i have to select objects from SQL table which are inside selected polygon.</p>
  
  <p><code>SELECT * FROM Objects</code></p>
  
  <p><code>WHERE Intersects(</code></p>
  
  <p><code>GeomFromText("POINT(object_x object_x)"),</code></p>
  
  <p><code>GeomFromText("POLYGON((52.82058030980633 20.01708984375,52.734185230629436 22.115478515625,52.82058030980633 20.01708984375))")</code></p>
  
  <p><code>) = 1</code></p>
  
  <p>My problem is how to build a 'POINT' fragment of my code, so it would work my SQL table.
  Any help appreciate :)</p>