Hi,

I am writing a module and I need to get the last 30 nodes and comments (related to the user id - the logged in user).

It's very easy to get the last 30 nodes and the last 30 comments separately. However, I need to get a listing of the last 30 comments and nodes combined together (not 30 nodes and 30 comments) and ordered by the creation date. How can it be done?

I thought about getting the last 30 nodes and then getting the last 30 comments (two separate queries) and then I will sort them in a new array that I will use later. However it seems that this way is rather crude and I am certain that there is a better way to do this.

Any help would be highly appreciated

Thank you.