Update OAIDAO.inc.php

This will speed 50x up
In harvesting process while getting all records of an archive,  this patch saves time and system resource.

Also I updated my gist. You can see sql query generated in this process.
https://gist.github.com/hasantayyar/dd1924cca0c5662d5530