Cann't get autoinc primary key value after UniQuery.Post when SQL include ORDER BY

Cann't get autoinc primary key value after UniQuery.Post when SQL include ORDER BY

Select * from table order by col1,  Simple SQL like this are fine.
Select table1.*, table2.xxxxx from table1 left join table2 left join table3 ORDER BY xxxxxx.
When it is such a complex SQL statement, the self-incrementing primary key value is Null after Post.

Everything works fine when the statement doesn't contain ORDER BY.