Hi Robert,

When i tried your one I had this error coming up:

  Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Column  
'tbl_020authorDetails.authorID' is invalid in the select list because  
it is not contained in an aggregate function and there is no GROUP BY  
clause.

Thanks,

Stuart

On 28 Sep 2005, at 23:20, Robert Munn wrote:

>                  <cfquery name="GetAuthors" datasource="user020">
>                  SELECT SELECT COUNT 
> (tbl_020articleDetails.articleID) AS totalArticles,  
> tbl_020authorDetails.authorID,
> authorPhotograph, authorFirstName, authorSurname, authorAboutMe,
> tbl_020articleDetails.articleID, tbl_020articleDetails.authorID,
> articleTitle, articleDatePublishedLast
>                  FROM tbl_020authorDetails, tbl_020articleDetails
>                  WHERE authorPhotograph <> ' ' AND
> tbl_020articleDetails.authorID = tbl_020authorDetails.authorID AND
> tbl_020articleDetails.articleAuthenticated = 1 AND
> tbl_020articleDetails.articleSubTypeID <> 55 AND
> tbl_020articleDetails.articleSubTypeID <> 68
>                  ORDER BY COUNT(tbl_020articleDetails.articleID),  
> tbl_020authorDetails.authorFirstName,
> articleDatePublishedLast DESC
>                  </cfquery>

Stu




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219536
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to