SyntaxFix
Write A Post
Hire A Developer
Questions
You want to join on condition 1 AND condition 2, so simply use the AND keyword as below
ON a.userid = b.sourceid AND a.listid = b.destinationid;