My site has a friend feed that I want to combine actions into. For ex, right now, it just returns what your friends have searched. However, I also want it to display what they have favorited in the same feed resulting in a feed of searches and favorites sorted chronologically.
The problem is, I can't figure out a good way to tackle this. I can't use MySql UNION because the two tables I would be pulling from (search table and favorite table) don't have the same number of columns and I need more columns from one then the other.
I looked into JOIN, but it is difficult because I am already joining two tables together to return the search results.
What I was thinking - Is there a way to do the two queries separately, grab the output as arrays and combine them with php based on the time column?