Hi Naomi.
>Now, when I try to run it it gives me an error saying that Order by clause is invalid. I see nothing wrong here, would you please help?
I found a bug in how ORDER BY in custom SQL statements is handled. I fixed it and posted a new build on our Web site (blogged at
http://blog.stonefieldquery.com), which you can download from the same location as you originally did.
Doug