insert into joomla.jos_vm_product select (Select column_name from information_schema.columns where table_schema="joomla "and table_name = "jos_vm_product" and column_name in (Select column_name from information_schema.columns where table_schema="mambo "and table_name = "mos_pshop_product")) from mambo.mos_pshop_product