What's and why more important for trading? Last price or close price?

I am not asking for definition. I am asking which one is more significant for next day opening ?

Closing price is more relevant as this determines your marked to market profit and losses. When market is closing, last price is more relevant but when market opens next day morning closing price is more relevant.