SELECT a.uid,
a.title,
b.uid_local,
b.uid_foreign,
c.uid,
c.title,
c.parentcategory
FROM tx_news_domain_model_news AS a,
tx_news_domain_model_news_category_mm AS b,
tx_news_domain_model_category AS c
WHERE a.uid = b.uid_local
AND b.uid_foreign = c.uid
AND c.parentcategory = 6