Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When creating a decision and setting the "Restrict voting to electoral list" option I get the above error. The reason being unprefixed table name on decisions.module line 1182:
1182: return db_query("INSERT INTO {decisions_electoral_list} (nid, uid) SELECT '%d', u.uid FROM <b>users_roles</b> u, permission p WHERE FIND_IN_SET(' view deci sions', p.perm) AND u.rid = p.rid AND u.uid <> 0", $node->nid);