This question already has an answer here:
Can the following sentences:
It's the church where the painting burned./It's the church in which the painting burned.
be transformed so that they do not contain the pronoun which/where in the following way:
It's the church the painting burnt in.