Hi,
just looking at the documentation I'd try adding the return type of CustomTableItem.
docs.kentico.com/k10/...Joiningmultipletables(SQLJOIN)
as in:
var result =
CustomTableItemProvider.GetItems("customtable.MyJoinCategory")
.Source(s => s.LeftJoin<CustomTableItem>
("customtable_MyJoinProduct", "ItemID", "CategoyID"))
.Result;
But it might also fail because of the ItemID column, as probably both your custom tables have this column.
So you might want to include the table name:
var result =
CustomTableItemProvider.GetItems("customtable.MyJoinCategory")
.Source(s => s.LeftJoin<CustomTableItem>
("customtable_MyJoinProduct", "customtable_MyJoinProduct.ItemID", "CategoyID"))
.Result;