MySQL insert query failed: Duplicate entry 'trall' for key 'public_id'