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.
EntityFieldQuery should prefix conditions with table name for the given entity. If not done, this can cause problems with altering the query.
For example, if you use an EntityFieldQuery to grab a list of users with a specific user id, and alter the query to join on the roles table, you will get a database error about ambiguous column 'uid'
Comments
Comment #1
vipulsuriya CreditAttribution: vipulsuriya commentedCan you please provide more detail on this issue or screenshot with query.
Comment #2
vipulsuriya CreditAttribution: vipulsuriya commentedNo complete information available about the issue. Hence Closing as it is now outdated by years.