Related resources for IN operator with a subquery in MySQL