$metstyl= "SELECT concat(wtt.taxonomy,':' ,GROUP_CONCAT(wt.name separator ',')) as result
FROM `wp_term_taxonomy` as wtt, `wp_terms` as wt
where (wtt.taxonomy IN ('pa_metal','pa_style')
AND wtt.term_id = wt.term_id
AND wtt.count>0) group by taxonomy";