Sous requete SQL
SELECT *
FROM `table`//for one row
WHERE `nom_colonne` = (
SELECT `valeur`
FROM `table2`
)
SELECT *
FROM `table`//for mutiples rows
WHERE `nom_colonne` IN (
SELECT `valeur`
FROM `table2`
)
Little-kinder