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 ')
AND civicrm_group.is_hidden = 0
AND (c' at line 7, 1064
Additional Details:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] =>
SELECT civicrm_group.id as group_id,
civicrm_group.title as title,
civicrm_group.description as description
FROM civicrm_group
LEFT JOIN civicrm_group_contact
ON civicrm_group_contact.group_id = civicrm_group.id
WHERE civicrm_group.id IN ()
AND civicrm_group.is_hidden = 0
AND (civicrm_group.saved_search_id is not null
OR (civicrm_group_contact.contact_id = 2517
AND civicrm_group_contact.status = 'Added')
) [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 ')
AND civicrm_group.is_hidden = 0
AND (c' at line 7]
[type] => DB_Error
[user_info] =>
SELECT civicrm_group.id as group_id,
civicrm_group.title as title,
civicrm_group.description as description
FROM civicrm_group
LEFT JOIN civicrm_group_contact
ON civicrm_group_contact.group_id = civicrm_group.id
WHERE civicrm_group.id IN ()
AND civicrm_group.is_hidden = 0
AND (civicrm_group.saved_search_id is not null
OR (civicrm_group_contact.contact_id = 2517
AND civicrm_group_contact.status = 'Added')
) [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 ')
AND civicrm_group.is_hidden = 0
AND (c' at line 7]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="
SELECT civicrm_group.id as group_id,
civicrm_group.title as title,
civicrm_group.description as description
FROM civicrm_group
LEFT JOIN civicrm_group_contact
ON civicrm_group_contact.group_id = civicrm_group.id
WHERE civicrm_group.id IN ()
AND civicrm_group.is_hidden = 0
AND (civicrm_group.saved_search_id is not null
OR (civicrm_group_contact.contact_id = 2517
AND civicrm_group_contact.status = 'Added')
) [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 ')
AND civicrm_group.is_hidden = 0
AND (c' at line 7]"]
)