Hi SpiritFox,
Your query seems to have syntax errors, it should be something like:
SELECT
{Trocas}.*,{User}.*, userenvia.*, userregista.*
FROM
{Trocas}
INNER JOIN {User} on {Trocas}.[USERID_RECEBE]={User}.[Id]
inner join {User} userenvia on {Trocas}.[USERID_ENVIA]= userenvia.[Id]
inner join {User} userregista on {Trocas}.[USERID_REGISTA] = userregista.[Id]
@SQLInstruction
Some things you weren't doing right:
- When you join a table multiple times like the case of {User} entity in this case you need to define alias to make the distinction. This is what the query above uses with userenvia and userregista;
- Select outputs must be separated by commas;
- Your attributes UserId_Envia, UserId_Recebe and User_IdRegista are User Ids so you want to join them with the Id of the table User, not the attribute Username.
You need to make sure that the output structures of your query are Trocas entity and three User entities to match the output of the query (the first user entity will be referring to UserID_Recebe, the second one will be referring to UserID_Envia, the third one referring to UserID_Regista), as in the image below:

You should rename the automatic names User, User_2 and User_3 to something that makes more sense like User_Envia, User_Recebe and User_Regista, using the right panel after clicking on the output entity, like on the screenshot above.
Additionally, your SQLInstruction parameter should be filled as in the for each loop example but to match your scenario the assign inside the for each should be:
SQLInstruction + "{Trocas}.[Nota_Devolução] LIKE '%" + String_Split.List.Current.Text.Value + "%' OR
{User}.[Name] LIKE '%" + String_Split.List.Current.Text.Value + "%' OR
userenvia.[Name] LIKE '%" + String_Split.List.Current.Text.Value + "%' OR
userregista.[Name] LIKE '%" + String_Split.List.Current.Text.Value + "%' OR
Like this it should work for use case, if you follow the rest of the example.
As a future improvement, you could create a structure with the fields you need and adapt your Query SELECT to that output and your query output structure would be only that structure rather than a set of entities.