It looks like it should return a result for you. I would suggest adding the 'posted desc' to the order by of the query in a query line, in case your messages are not sorting correctly.
william William Seiter (mobile) Have you ever read a book that changed your life? go to: http://www.winninginthemargins.com and use passcode: GoldenGrove -----Original Message----- From: "Phillip Vector" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: 6/2/2008 2:34 PM Subject: Order by another query I have a query that pulls all the top messages in a forum for each area (So I have the thread titles). I want to sort by the last posted, but it isn't working.. This is the code I came up with so far.. <cfquery datasource="#datasource#" name="AllMessages"> select * from forum_messages where areaID = #session.areaID# order by sticky DESC, Posted DESC </cfquery> <cfquery name="Messages" dbtype="query"> select * from AllMessages where MainThread = 1 order by sticky DESC </cfquery> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306660 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

