Try to use a nested SELECT
, this should return null
for the users
without any event:
select
u.name,
SELECT(
group_concat(content)
FROM
events
WHERE
userId = u.id
) as events
from
users u
order by
u.id
* Be the first to Make Comment