The display code below should show the name of an author followed by the headlines of the articles written by the author. This works fine against a query that pulls all rows, but used on a query that displays only certain rows (called alphapull) I don't get the grouping...the author name repeats for each entry. The code is the same except for the query reference. Any insights appreciated:
<cfelseif param IS "alpha">
<cfinclude template = "alpha.cfm"><p>
<cfoutput query = "alphapull" group = "authorlastname">
<span class = "displayonebold">#authorlastname#, #authorfirstname#</span><br>
<cfoutput>
<cfset newhead = "#Replace(headline, "''", "&##146", "ALL"
#"><span class = "displayone">&##147;<a href = "menarticleframe.cfm?articleid=#articleid#" target = "mainwin">#newhead#</a>&##148;</span>
<cfif #webonly# IS "1">
<img src = "Images/webonly.jpg">
</cfif><br><span class = "smalltext"> <b>CGNews:</b> #DateFormat(cgnewsdate, "MMMM D, YYYY"
# <b>Original Publication: </b><i>#originalpub#</i> #DateFormat(originalpubdate, "MMMM D, YYYY"
#</span><p>
</cfoutput><p>
</cfoutput>
<cfinclude template = "alpha.cfm"><p>
<cfelseif param IS "alpha">
<cfinclude template = "alpha.cfm"><p>
<cfoutput query = "alphapull" group = "authorlastname">
<span class = "displayonebold">#authorlastname#, #authorfirstname#</span><br>
<cfoutput>
<cfset newhead = "#Replace(headline, "''", "&##146", "ALL"
<cfif #webonly# IS "1">
<img src = "Images/webonly.jpg">
</cfif><br><span class = "smalltext"> <b>CGNews:</b> #DateFormat(cgnewsdate, "MMMM D, YYYY"
</cfoutput><p>
</cfoutput>
<cfinclude template = "alpha.cfm"><p>