Dear LarryK,
Thank you very much for your reply.
Let me respond to your questions quickly:
1- What's a long time? - I said so because it was taking longer than the max_execution_time in php.ini of 300s. I had to increase it to 600s, I had to increase it to
2- ORDER BY clause: Yes, I see...