I need to get the values from the meta_value column that have "shipping" in the corresponding meta_key column and concatenate them into a comma separated row.
I'm a bit of a noob to SQL so please be gentle.
My current query is this:
SELECT wp_postmeta.post_ID, wp_postmeta.meta_key, wp_postmeta.meta_value, wp_posts.ID, wp_posts.post_status
FROM wp_postmeta
CROSS JOIN wp_posts
WHERE wp_postmeta.post_ID= wp_posts.ID
AND wp_posts.post_status LIKE 'wc-processing'
AND (wp_postmeta.meta_key LIKE '%shipping%' OR wp_postmeta.meta_key LIKE '_order_total')