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:
categories:
categoryID - primary key
categoryName
Products:
productID - primary key
productCategoryID - relates to categories.categoryID
productName
etc
in this example, the productCategoryID column is the relationship column that creates the relation of the product to the category.