I have to SUM "Qty" where "cat" is equal to 5 and where id1 is equal to id2 and where id1 is not in id2
+---------------------------------