Brian Kerr - 2006-03-10

I get the following error when trying to insert using either an insert command or executenonquery (But if I copy the insert command from the exception and run it manually it will insert correctly):

exception 'MySQLDriverCS.MySQLException: MySQLDriverCS Exception: MySQLDriverCS Exception: MySQLDriverCS Error: wrong query.Duplicate entry '29174-1-2006-03-03 20:17:46-8.6' for key 2 in query 'insert into core_usage (  core_id  ,  feature_id  ,  usage_occurrance  ,  usage_count  ,  feature_version  ) VALUES (  29174  ,  1  ,  '2006-03-03 20:17:46'  ,  0  ,  '8.6' ) ;'
   at MySQLDriverCS.MySQLInsertCommand..ctor(MySQLConnection conn, Object[,] FieldsAndValues, String Table)

Any help would be appreciated