Zoltan Demant
10/04/2023, 7:16 AMSELECT transactionSql.*
FROM transactionSql
LEFT JOIN categorySql ON transactionSql.categoryId = categorySql.id
WHERE (:accountIds IS NULL OR transactionSql.accountId IN :accountIds);
:accountIds
is nullable, and the problematic line.