title: retrieve data by index on mysql database
body: <p>I would like to retrieve data from a given index. 
  Here's the sql code of the database: </p>
  
  <pre><code> CREATE TABLE `test` (
   `index` int(11) NOT NULL AUTO_INCREMENT,
   `user` text NOT NULL,
   PRIMARY KEY (`index`),
   UNIQUE KEY `index` (`index`)
  ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1
  </code></pre>
  
  <p>I can retrieve data from user like this: </p>
  
  <pre><code>SELECT * FROM test WHERE user='bertrand'
  </code></pre>
  
  <p>but when I try with index like this: </p>
  
  <pre><code>'index'=1
  </code></pre>
  
  <p>it gives me nothing ! 
  I don't understand what I'm doing wrong, 
  any help would be appreciated, thanks. </p>