so I have three tables with content and one that holds row order of those three tables
here are the tables
table content_order
id | content_type | content id
1 | content1 | 1
2 | content1 | 2
3 | content3 | 1
4 | content2 | 1
table content1
id | some_text
1 | aaaa
2 | bbb
table content2
id | some_text
1 | text yyyy
table content3
id | some_text
1 | text bbbb
so how do I get this?
content_type | some_text | content_id
content1 | aaaa | 1 |
content2 | bbb | 2 |
content3 | yyyy | 1 |
content2 | bbbb | 1 |
Try this: