You would do:
Code:
SELECT * FROM `global_stats` WHERE `timestamp` < '%d';
OR
SELECT Field1, Field2, Field3 FROM `global_stats` WHERE `timestamp` < '%d';
In your query handler (IgnoreHandle) you would then read the results and write to log file.
__________________