Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8515

Search Builder: Unknown column 'civicrm_note.note'

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.6, 3.4.4
    • Fix Version/s: 3.4.5
    • Component/s: CiviCRM Search
    • Labels:
      None

      Description

      Discovered in v3.3.6. reproduced on on 3.4 on Demo at http://drupal.demo.civicrm.org/civicrm/contact/search/builder?reset=1 (the d7 site didn't let me in with demo/demo):

      I've got 200+ records of donations (contributions) with civicrm_note.note like '%in memory of%'. To find these, (and this bug) go to Search Builder and Include contacts where: Contribution >> Contribution Note >> LIKE >> %memory% – Error Details below:

      Database Error Code: Unknown column 'civicrm_note.note' in 'where clause', 1054
      Additional Details:

      Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] => -19
      [message] => DB Error: no such field
      [mode] => 16
      [debug_info] => SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name FROM civicrm_contact contact_a LEFT JOIN civicrm_contribution ON civicrm_contribution.contact_id = contact_a.id LEFT JOIN civicrm_note civicrm_note_contribution ON ( civicrm_note_contribution.entity_table = 'civicrm_contribution' AND
      civicrm_contribution.id = civicrm_note_contribution.entity_id ) WHERE ( ( civicrm_note.note LIKE '%memory%' AND civicrm_contribution.is_test = 0 ) ) AND (contact_a.is_deleted = 0) [nativecode=1054 ** Unknown column 'civicrm_note.note' in 'where clause']
      [type] => DB_Error
      [user_info] => SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name FROM civicrm_contact contact_a LEFT JOIN civicrm_contribution ON civicrm_contribution.contact_id = contact_a.id LEFT JOIN civicrm_note civicrm_note_contribution ON ( civicrm_note_contribution.entity_table = 'civicrm_contribution' AND
      civicrm_contribution.id = civicrm_note_contribution.entity_id ) WHERE ( ( civicrm_note.note LIKE '%memory%' AND civicrm_contribution.is_test = 0 ) ) AND (contact_a.is_deleted = 0) [nativecode=1054 ** Unknown column 'civicrm_note.note' in 'where clause']
      [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name FROM civicrm_contact contact_a LEFT JOIN civicrm_contribution ON civicrm_contribution.contact_id = contact_a.id LEFT JOIN civicrm_note civicrm_note_contribution ON ( civicrm_note_contribution.entity_table = 'civicrm_contribution' AND
      civicrm_contribution.id = civicrm_note_contribution.entity_id ) WHERE ( ( civicrm_note.note LIKE '%memory%' AND civicrm_contribution.is_test = 0 ) ) AND (contact_a.is_deleted = 0) [nativecode=1054 ** Unknown column 'civicrm_note.note' in 'where clause']"]
      )

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              fen Fen Labalme
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: