I am trying to print the records from the table but I am getting the error as PHP timed out. A initial 1 ,2 records are printed then this message is displayed when I used the error_reporting .
Does the query take more than 30 seconds to complete?
Check out the manual about the max_execution_time parameter.