joins and wheres

Hi,

I am trying to build a params array for elgg_get_entities(). I need to get all group entities, where container_guid is not that of another group. I guess I need to match against the groups_entity table, but I am not really sure how.

Thanks for your help.