Inaccurate data in log_visit table

I am using Matomo On-Premise and store data in my own database.
Recently I found an obvious wrong data,which shows the time of the first access data is later than the subsequent access data.I want to konw what’s the problem and How can I get the right data.
I give a query example:

Hi @wenjuan_xie
How did you collect data?
Do you use QueuedTracking plugin?