insert into product_option(
product_id,
option_id,
option_value,
required
)
SELECT po.product_id, po.option_id, po.option_value, po.required FROM `product` as p
left outer join product_option as po
on p.product_id = po.product_id
WHERE p.product_id = 1170
group by po.option_id