$query = mysql_query("INSERT INTO tabella ( `campo1`, `campo2`)
VALUES ('$_POST[var1]', SELECT xxx from tabella2 WHERE campo2=$_POST[var2])");

qual è la sintassi giusta per inserire il secondo valore (che è numerico) ?

Grazie anticipatamente