datastore_search_sql failing for some anonymous users

Datastore search sql failing to authorize for seemingly random sites. Always works for sysadmin, and privileged users.