Results 1 to 5 of 5

Thread: MySQL error 1054: Unknown column 'name' in 'where clause'

  1. #1
    lmirguet is offline Junior Member
    Join Date
    Feb 2011
    Posts
    3

    Default MySQL error 1054: Unknown column 'name' in 'where clause'

    Hello,

    I'm trying to launch my first email campaign with SugarCRM (version 5.5.4). And apparently the scheduler runMassEmailCampaign never completes (it stays always in status "In Progress").

    In the logs I can find only one line which seems to correspond to the scheduler issue:
    MySQL error 1054: Unknown column 'name' in 'where clause'

    Can you please me debugging this problem?

    Thanks a lot
    Laurent

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: MySQL error 1054: Unknown column 'name' in 'where clause'

    Go to Admin -> System Settings.
    Update log level to debug.
    Try again.
    Track the sugarcrm.log and figure out if the steps it is following regarding the Mass Email Campaigns.
    Attach into your next post the piece of sugarcrm.log regarding the Campaigns.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    lmirguet is offline Junior Member
    Join Date
    Feb 2011
    Posts
    3

    Default Re: MySQL error 1054: Unknown column 'name' in 'where clause'

    Hello Sugar Hero,

    Thanks a lot for your help.

    Here is the complete log of my problem:

    Wed Feb 2 15:56:02 2011 [31265][1][DEBUG] -------------------------------> Email called save()
    Wed Feb 2 15:56:02 2011 [31265][1][DEBUG] Including module specific hook file for Emails
    Wed Feb 2 15:56:02 2011 [31265][1][DEBUG] Creating new instance of hook class EmailsHooks without parameters
    Wed Feb 2 15:56:02 2011 [31265][1][DEBUG] Retrieve Contact: SELECT contacts.*,contacts_cstm.* FROM contacts LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c WHERE name = 'contact@microworld.org' AND deleted=0
    Wed Feb 2 15:56:02 2011 [31265][1][DEBUG] Limit Query:SELECT contacts.*,contacts_cstm.* FROM contacts LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c WHERE name = 'contact@microworld.org' AND deleted=0 Start: 0 count: 1
    Wed Feb 2 15:56:02 2011 [31265][1][INFO] Query:SELECT contacts.*,contacts_cstm.* FROM contacts LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c WHERE name = 'contact@microworld.org' AND deleted=0 LIMIT 0,1
    Wed Feb 2 15:56:02 2011 [31265][1][INFO] Query Execution Time:0.000227928161621
    Wed Feb 2 15:56:02 2011 [31265][1][FATAL] MySQL error 1054: Unknown column 'name' in 'where clause'
    Wed Feb 2 15:56:02 2011 [31265][1][DEBUG] Calling DBManager::disconnect()

    I am in the process of sending a mail campaign. The From: field of the mail campaign is "contact@microworld.org" so I am quite surprised by this request:
    SELECT contacts.*,contacts_cstm.* FROM contacts LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c WHERE name = 'contact@microworld.org' AND deleted=0

    Why would Sugar look for the contacts whose names are 'contact@microworld.org'?

    Please could you give me a hint?
    Best regards,
    Laurent

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: MySQL error 1054: Unknown column 'name' in 'where clause'

    Hi Laurent

    Definitely it is so weird.
    Do you know if someone had installed any additional package or customize files by hand?
    This is not the default behavior at all.
    It would be necessary to debug all related scripts in order to identify the buggy stuff.

    Best regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    lmirguet is offline Junior Member
    Join Date
    Feb 2011
    Posts
    3

    Default Re: MySQL error 1054: Unknown column 'name' in 'where clause'

    Hello Sugar Hero,

    Thanks a lot for your help and advices !
    Indeed I have found the culprit in a custom module that I did not know - and which was creating some troubles in my instance of SugarCrm when it was sending emails.

    Your advices helped me a lot!

    Thanks
    Laurent

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mysql error 1054, unknown column
    By lmsservices in forum Customer Support
    Replies: 13
    Last Post: 2010-06-11, 06:33 AM
  2. Replies: 0
    Last Post: 2009-06-15, 05:12 PM
  3. Replies: 1
    Last Post: 2009-03-31, 06:50 PM
  4. Replies: 1
    Last Post: 2008-09-18, 11:25 AM
  5. MySQL error 1054: Unknown column 'user' HELP!
    By tj@estreet.com in forum Help
    Replies: 2
    Last Post: 2007-06-27, 05:44 AM

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
  •