Maciek Perlinski wrote: > Tadej and Earl its nice you analyze the sql query but after sql query > execution $nodes array will be empty won't it?=) Not empty, actually, but it will only have one record. Good catch, I missed that. In example 2, $nodes[$node->nid] needs to be $nodes[$node[$nid]]