This is the query I am trying to re-write in J4. There is a nested select statement with left join in an outer left join.
Code:
$query = " SELECT u.id, u.name AS user_name, t.concatenated_topics as topics FROM #__users AS u LEFT JOIN (SELECT id_user, GROUP_CONCAT(t.name) as concatenated_topics FROM #__user_topics LEFT JOIN #__topics as t on t.id = id_topic GROUP BY id_user) AS t on t.id_user = u.id
Statistics: Posted by JanoD — Mon Jun 10, 2024 5:00 pm