@tanguatlay,
To have the sentence make sense, it should read:
The last time I was here, things were cheaper.
Yes, the "the" is needed with last time, but without a modifier (I was here), the sentence sounds incomplete.
The last time things were cheaper, something else.