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:306642 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4