[development] Avoiding sub-queries

Darren Oh darrenoh at sidepotsinternational.com
Mon Apr 23 14:17:01 UTC 2007

On Apr 23, 2007, at 9:58 AM, Erdem Köse wrote:

> I think this should work:
> db_query_range(db_rewrite_sql("SELECT n.nid FROM {node} n ORDER BY  
> n.nid"), $count-1, 1);

Perfect! Now that you point it out, I have no idea why I was using  
the MAX() function in the first place.

More information about the development mailing list