Here is what I want to do:
I have 3 tables: musicItems, photoItems, textItems
Each table has different columns.
Table "musicItems"
id
Owner_id
audioId
url
duration
Table "photoItems"
id
albumId
userId
photoId
url
Table "textItems"
id
msgText
And I have one more table
"footprints"
id
itemType
itemId
I need to retieve last 30 items from table "footprints" with all properties depending on itemType and itemId. How can i do that?