Results 1 to 3 of 3

Thread: Case query sorted by Account - SQL Error

  1. #1
    EFSNetworks is offline Junior Member
    Join Date
    Mar 2007
    Posts
    2

    Default Case query sorted by Account - SQL Error

    Whenever I click on a case to view its details I get the following error:

    This happens only when the cases are sorted by account. If I sort the cases by any other column then try to view the details on a case - the query pulls up the case details correclty.

    Here is a copy of the error message

    Error retrieving Case list: Query Failed:SELECT cases.*, accounts.name as account_name1, accounts.assigned_user_id account_name1_owner, users.user_name as assigned_user_name , cases_cstm.* FROM cases LEFT JOIN users ON cases.assigned_user_id=users.id LEFT JOIN accounts ON cases.account_id=accounts.id LEFT JOIN cases_cstm ON cases.id = cases_cstm.id_c where cases.deleted=0 AND accounts.deleted=0 ORDER BY account_name ASC LIMIT 2,1::MySQL error 1054: Unknown column 'account_name' in 'order clause'[/SIZE][/SIZE][/FONT][/COLOR]

  2. #2
    ksechrist is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Re: Case query sorted by Account - SQL Error

    I am experiencing the exact same thing! Anyone, please, help?

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Case query sorted by Account - SQL Error

    This must be "Error 1054" day. LOL

    Does the same occur if you sort the list view on a column other than Account Name prior to viewing one of the cases?
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 15
    Last Post: 2010-04-01, 04:04 PM
  2. SQL Error on Case save/creation
    By dstrickler in forum Help
    Replies: 2
    Last Post: 2009-08-19, 06:45 PM
  3. Replies: 1
    Last Post: 2008-02-22, 04:25 PM
  4. Replies: 1
    Last Post: 2005-12-19, 03:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •