title: Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
body: <p>I tried to insert values on this table:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `textos`.`textos` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `nombre_textos` VARCHAR(15) CHARACTER SET 'utf8' NOT NULL,
    `texto` LONGTEXT CHARACTER SET 'utf8' NOT NULL,
    `id_usuarios` INT(11) NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE INDEX `id_usuarios` (`id_usuarios` ASC),
    INDEX `id_usuarios_2` (`id_usuarios` ASC),
    CONSTRAINT `textos_ibfk_1`
      FOREIGN KEY (`id_usuarios`)
      REFERENCES `textos`.`usuarios` (`id`)
     )
  </code></pre>
  
  <p>and mysql throws me this error: </p>
  
  <blockquote>
    <p>Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
    entry '17' for key 'id_usuarios'</p>
  </blockquote>
  
  <p>Someone could help me?<br>
  I hope what I have requested is possible</p>