I have stumped on this as I am a total beginner in MySql.
Here is a the basic of how the two tables are formed
Table 1 id,product_id, product_name
It's pretty simple to join two tables:
select t1.* from Table1 t1 join Table2 t2 on t1.product_id = t2.product_id where t2.active = 'Y'