I have been playing with a new type. Everything is fine until i get to "insert" then it comes up with the error

1054 Unknown column 'products_id' in 'where clause'
Any ideas on where the error might be ?