tblArticle, tblArticleImages and tblImages that is as follows might work better(Or I read it easier??)
from a in tblArticles
join ac in tblArticleCategories on a.ID equals ac.articleID
join c in tblCategories on ac.categoryID equals c.ID
where c.name == “Africa insight”
select new
{
categoryName = c.name,
headline = a.heading,
articleID = a.ID,
synopsis = a.synopsis,
story = a.story,
imagePath = (
from a2 in tblArticles
join ai in tblArticleImages on a2.ID equals ai.articleID
join i in tblImages on ai.imageID equals i.ID
where i.isThumbnail == true && a2.ID == a.ID
select i.imagePath
).FirstOrDefault()
}


Formular una pregunta