Daha profesyonel ve esnek bir yöntem olarak şu şekildede olabilir...

$SQL = array(
    'sorgum1' => "INSERT INTO `oyunlar` VALUES ('','%s','%s')",
    'sorgum2' => "INSERT INTO `resimler` VALUES ('','%s','%s')"
);

$Ekle  = @mysql_query(sprintf($SQL['sorgum1'], $ydesc, $yswf));
$id    = mysql_insert_id();
$Ekle2 = @mysql_query(sprintf($SQL['sorgum2'], $id, $yimg));