I am trying to do a manual query for WordPress postmeta table which would combine two types of postmeta into one with multiple columns by post_id.
This is the structure of table:
--------------------------------------------------------
meta_id | post_id | meta_key | meta_value
1 | 100 | _wp_attachment_metadata | a:6:{s:5:"width"}
2 | 100 | _thumbnail_id | 23
`
This is the result I am trying to achieve:
--------------------------------------------------------
post_id | _wp_attachment_metadata | _thumbnail_id
100 | a:6:{s:5:"width"} | 23