I can't tell you that, you would need to tell me that. I don't know the structure of your tables.
but where you inserting to 2 tables, the second table would need a column to create the relationship. an example would be a products table and a categories table:
categoryID - primary key
productID - primary key
productCategoryID - relates to categories.categoryID
in this example, the productCategoryID column is the relationship column that creates the relation of the product to the category.