A table does not use a select command.
Select statements are used to retrieve information from tables.
If you want to select related data from two separate tables then you need to learn how to use a JOIN in your statement. Something like the following is what I am talking about.
select table1.id,
table1.value,
table1.table2_fk,
table2.value
from table1
inner join table2 on table2.id = table1.table2_fk