$where = sql_in_select("colonne", "colonne", "tables", "id_parent = $id_parent")); // $where : colonne IN (3, 5, 7) if ($res = sql_select('colonne', 'autre_table', $where)) { // ... }