Report question

Question: How to keep a php script from timing out because of a long mysql query