title: Spatial Index in MySQL - ERROR - Cannot get geometry object from data you send to the GEOMETRY field
body: <p>I am new to the whole 'spatial index' thing, but it seems to be the best solution for filtering based on latitude/longitude. So I added a column to my table:</p>
  
  <p>So I created a <code>geometry</code> field:</p>
  
  <pre><code>  ALTER TABLE `addresses` ADD `point` POINT NOT NULL 
  </code></pre>
  
  <p>And then I tried to add an index:</p>
  
  <pre><code>  ALTER TABLE `addresses` ADD SPATIAL INDEX ( `point` ) 
  </code></pre>
  
  <p>But I get an error:</p>
  
  <pre><code>  #1416 - Cannot get geometry object from data you send to the GEOMETRY field
  </code></pre>
  
  <p>What am I doing wrong here? </p>