I want to select the left join table depending on a value from other table. So I tried this, but not working:
CASE WHEN c.catId LIKE "%s%" THEN
LEFT JOIN AppBundle:newspaper_subcategories cat WITH c.catIdShort = cat.id
ELSE
LEFT JOIN AppBundle:newspaper_categories cat WITH c.catIdShort = cat.id
END