ZC 1.3.8 and SbA 4.7 both fresh installs:

OK, I'm trying to figure out how products_with_attributes_stock.stock_attributes relates to anything.

My attributes (products_attributes.options_values_id) are 6,1,2,3,4,5 and my stock_attributes are 3,4,5,6,7,8. These each repeat for each of the 5 products for which I have attributes.

My products_options_values.products_options_values_id are 0,1,2,3,4,5,6 (0 being TEXT)

Only 1 type of product option, and products_options_values_to_products_options has 6 rows corresponding to products_options_values_to_products_options_id and products_options_values_id 1,2,3,4,5,6 all for products_options_id of 1.

So, again, stock_attributes with 3,4,5,6,7,8 is the odd ID out. How do I relate stock_attributes to any of the other ids? Everything seems to work as expected, but I can't do any SQL with stock_attributes.