Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.7, 1.8
-
Fix Version/s: 1.8
-
Component/s: None
-
Labels:None
Description
backtrace:
/home/crm/crm3/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 147
, handle,
/home/crm/crm3/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 901
/home/crm/crm3/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 888
/home/crm/crm3/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 563
/home/crm/crm3/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1849
/home/crm/crm3/sites/all/modules/civicrm/packages/DB/mysql.php, raiseError, 894
/home/crm/crm3/sites/all/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 324
/home/crm/crm3/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1162
/home/crm/crm3/sites/all/modules/civicrm/packages/DB/DataObject.php, query, 2344
/home/crm/crm3/sites/all/modules/civicrm/packages/DB/DataObject.php, _query, 1566
/home/crm/crm3/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 659
/home/crm/crm3/sites/all/modules/civicrm/CRM/Contact/BAO/GroupContact.php, executeQuery, 370
/home/crm/crm3/sites/all/modules/civicrm/CRM/Contact/BAO/GroupContact.php, getContactGroup, 112
/home/crm/crm3/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php, getValues, 1003
/home/crm/crm3/sites/all/modules/civicrm/CRM/Contact/Page/View/Tabbed.php, retrieve, 112
/home/crm/crm3/sites/all/modules/civicrm/CRM/Contact/Page/View/Tabbed.php, view, 76
/home/crm/crm3/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 357
/home/crm/crm3/sites/all/modules/civicrm/CRM/Core/Invoke.php, contact, 82
/home/crm/crm3/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 288
, civicrm_invoke,
/home/crm/crm3/includes/menu.inc, call_user_func_array, 418
/home/crm/crm3/index.php, menu_execute_active_handler, 15
==================================================
Error message:
Sorry. A non-recoverable error has occurred.
Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN , 1064
Return to CiviCRM menu.
==================================================
Error Details:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] => SELECT
civicrm_group_contact.id as civicrm_group_contact_id,
civicrm_group.title as group_title,
civicrm_group.visibility as visibility,
civicrm_group_contact.status as status,
civicrm_group.id as group_id,
civicrm_subscription_history.date as date,
civicrm_subscription_history.method as method FROM civicrm_contact contact_a LEFT JOIN civicrm_group_contact ON contact_a.id = civicrm_group_contact.contact_id LEFT JOIN civicrm_group ON civicrm_group.id = civicrm_group_contact.group_id LEFT JOIN civicrm_subscription_history
ON civicrm_group_contact.contact_id = civicrm_subscription_history.contact_id
AND civicrm_group_contact.group_id = civicrm_subscription_history.group_id WHERE contact_a.id = 760 AND civicrm_group.is_active = 1 AND civicrm_group_contact.status = 'Added' AND ( ( civicrm_group_contact.group_id IN (All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN NY Mission, role_general_access, role_readonly, role_restricted, UN-INSTRAW Alumni, UN-INSTRAW_Board ) AND civicrm_group_contact.status = 'Added' ) ) ORDER BY civicrm_group.title LIMIT 0, 3 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN]
[type] => DB_Error
[user_info] => SELECT
civicrm_group_contact.id as civicrm_group_contact_id,
civicrm_group.title as group_title,
civicrm_group.visibility as visibility,
civicrm_group_contact.status as status,
civicrm_group.id as group_id,
civicrm_subscription_history.date as date,
civicrm_subscription_history.method as method FROM civicrm_contact contact_a LEFT JOIN civicrm_group_contact ON contact_a.id = civicrm_group_contact.contact_id LEFT JOIN civicrm_group ON civicrm_group.id = civicrm_group_contact.group_id LEFT JOIN civicrm_subscription_history
ON civicrm_group_contact.contact_id = civicrm_subscription_history.contact_id
AND civicrm_group_contact.group_id = civicrm_subscription_history.group_id WHERE contact_a.id = 760 AND civicrm_group.is_active = 1 AND civicrm_group_contact.status = 'Added' AND ( ( civicrm_group_contact.group_id IN (All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN NY Mission, role_general_access, role_readonly, role_restricted, UN-INSTRAW Alumni, UN-INSTRAW_Board ) AND civicrm_group_contact.status = 'Added' ) ) ORDER BY civicrm_group.title LIMIT 0, 3 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT
civicrm_group_contact.id as civicrm_group_contact_id,
civicrm_group.title as group_title,
civicrm_group.visibility as visibility,
civicrm_group_contact.status as status,
civicrm_group.id as group_id,
civicrm_subscription_history.date as date,
civicrm_subscription_history.method as method FROM civicrm_contact contact_a LEFT JOIN civicrm_group_contact ON contact_a.id = civicrm_group_contact.contact_id LEFT JOIN civicrm_group ON civicrm_group.id = civicrm_group_contact.group_id LEFT JOIN civicrm_subscription_history
ON civicrm_group_contact.contact_id = civicrm_subscription_history.contact_id
AND civicrm_group_contact.group_id = civicrm_subscription_history.group_id WHERE contact_a.id = 760 AND civicrm_group.is_active = 1 AND civicrm_group_contact.status = 'Added' AND ( ( civicrm_group_contact.group_id IN (All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN NY Mission, role_general_access, role_readonly, role_restricted, UN-INSTRAW Alumni, UN-INSTRAW_Board ) AND civicrm_group_contact.status = 'Added' ) ) ORDER BY civicrm_group.title LIMIT 0, 3 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'All Media DR, not_restricted, ORG-Permanent Missions DR, ORG-UN]"]
)