getRecords(header) MySQL Error: Query execution was interrupted (max_statement_time exceeded)