I list the products by filtering table1 according to the following table2.
Table1
--------------------------------- | id | name | |----------------