You need to sign in to do that
Don't have an account?

Illegal filter on Attachment
Does anyone know why this query works as an admin but not as a user? He has access and API enabled.
Select a.Id, a.Name, a.Owner.LastName, a.Owner.FirstName From Attachment a where a.ParentId='a0I500000016QTG' and a.Owner.Id in(
'00550000000mVMfAAM','00550000000mVMiAAM','00550000000mVMlAAM') order by a.Owner.LastName
Select a.Id, a.Name, a.Owner.LastName, a.Owner.FirstName From Attachment a where a.ParentId='a0I500000016QTG' and a.Owner.Id in(
'00550000000mVMfAAM','00550000000mVMiAAM','00550000000mVMlAAM') order by a.Owner.LastName

Check the CRUD and field level security on that user.