Hey @mijorus, thanks for the explanation. Really helped me out. I had to delete some entries from the table formed using two collection types and you’re code worked.
Didn’t really knew writing raw queries like I’ve done earlier could lead to SQL injection attacks.
Thanks for the additional info too.