I tried this on 5.2.22 and got the same error, upgraded to latest hoping it would be gone, but it isnt.
This query:
select e.*
from events e
JOIN participants p ON p.eventID = e.eventID
JOIN contactIsUserAlias alias ON alias.contactID = p.contactID
JOIN users u ON e.userID = u.userID
where e.userID=1
or alias.userID = 1
reliably gets me an error dialog box:
builtin:query.execute_current_statement
std::bad_alloc
This query:
select e.*
from events e
JOIN participants p ON p.eventID = e.eventID
JOIN contactIsUserAlias alias ON alias.contactID = p.contactID
JOIN users u ON e.userID = u.userID
where e.userID=1
or alias.userID = 1
reliably gets me an error dialog box:
builtin:query.execute_current_statement
std::bad_alloc