mysqli_sql_exception thrown

Duplicate entry '0' for key 'PRIMARY'