There is no concept of "last" in a query unless you define an order. If you really want whatever row really happens to randomly show up in the last result row the use the "row_number()" window function to give each row a number and then sort and limit on that.