Selecting the Last Closed Order in the Trading History

 
Hello everyone, Does anyone know how to select the last order in the trading history. I've tried it in all the ways I know through OrderSelect and it did not work. Very grateful for the attention.
 
Computação vestível:
Hello everyone, Does anyone know how to select the last order in the trading history. I've tried it in all the ways I know through OrderSelect and it did not work. Very grateful for the attention.

you should orderelect from ordershistorytotal

you may be try this in to orderstotal

Reason: