product_attr_id=12286, product_id=2779, attr_7=461,attr_29= 1097, count=1
product_attr_id=12287, product_id=2779, attr_7=461,attr_29= 1098, count=2
product_attr_id=12288, product_id=2779, attr_7=461,attr_29= 1099, count=3
product_attr_id=12289, product_id=2779, attr_7=462,attr_29= 1097, count=4
product_attr_id=12290, product_id=2779, attr_7=462,attr_29= 1098, count=5
product_attr_id=12291, product_id=2779, attr_7=462,attr_29= 1099, count=6
product_attr_id=12286, product_id=2780, attr_7=461,attr_29= 1097, count=1
product_attr_id=12287, product_id=2780, attr_7=461,attr_29= 1098, count=2
product_attr_id=12288, product_id=2780, attr_7=461,attr_29= 1099, count=3
product_attr_id=12289, product_id=2780, attr_7=462,attr_29= 1097, count=4
product_attr_id=12290, product_id=2780, attr_7=462,attr_29= 1098, count=5
product_attr_id=12291, product_id=2780, attr_7=462,attr_29= 1099, count=6
INSERT INTO `osn86_jshopping_products_attr` (`product_id`, `price`, `old_price`, `count`, `ean`, `attr_29`)
SELECT
`product_id` AS `product_id`,
`product_price` AS `price`,
`product_old_price` AS `old_price`,
'10' AS `count`,
`product_ean` AS `ean`,
'1099' AS `attr_29`
FROM
`osn86_jshopping_products`, `osn86_jshopping_products_to_categories` WHERE
`osn86_jshopping_products.product_id` = `osn86_jshopping_products_to_categories.product_id` AND
`osn86_jshopping_products_to_categories.category_id` NOT IN (214, 221, 220, 217, 216, 215, 48, 42, 40, 45, 46, 44, 50, 41, 43, 31, 178, 89, 47, 179, 177, 120, 121, 59, 58, 32, 37, 56, 53, 54, 55, 29, 28, 30, 176, 237, 113, 116, 175, 114, 196, 195, 197, 218, 219, 33, 93, 92, 91, 81, 90);