An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php' on line 13:
mysqli_connect(): (HY000/1040): Too many connections
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_connect(): (HY000/1040): Too many connections
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php
[3] => 13
[4] => Array
(
[_GET] => Array
(
)

[_POST] => Array
(
)

[_COOKIE] => Array
(
)

[_FILES] => Array
(
)

[_SERVER] => Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[PWD] => /var/www/fcgi
[SHLVL] => 0
[PHP_FCGI_MAX_REQUESTS] => 100
[ORIG_SCRIPT_NAME] => /fcgi-bin/php56-cgi
[ORIG_PATH_TRANSLATED] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[ORIG_PATH_INFO] => /fifty_miles_rankings_men.php
[ORIG_SCRIPT_FILENAME] => /var/www/fcgi/php56-cgi
[SCRIPT_NAME] => /fifty_miles_rankings_men.php
[REQUEST_URI] => /fifty_miles_rankings_men.php
[QUERY_STRING] =>
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /fifty_miles_rankings_men.php
[REMOTE_PORT] => 50692
[SCRIPT_FILENAME] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[SERVER_ADMIN] => admin@southwesttimetrials.org
[CONTEXT_DOCUMENT_ROOT] => /var/www/fcgi/
[CONTEXT_PREFIX] => /fcgi-bin/
[REQUEST_SCHEME] => http
[DOCUMENT_ROOT] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs
[REMOTE_ADDR] => 54.144.73.205
[SERVER_PORT] => 80
[SERVER_ADDR] => 10.10.110.34
[SERVER_NAME] => southwesttimetrials.org
[SERVER_SOFTWARE] => Apache
[SERVER_SIGNATURE] =>
[HTTP_IF_MODIFIED_SINCE] => Thu, 14 Dec 2017 08:20:27 GMT
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
[HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
[HTTP_CONNECTION] => close
[HTTP_X_URL_SCHEME] => http
[HTTP_X_FORWARDED_PROTO] => http
[HTTP_X_REAL_IP] => 54.144.73.205
[HTTP_X_FORWARDED_HOST] => southwesttimetrials.org
[HTTP_HOST] => southwesttimetrials.org
[UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => application/x-httpd-php56
[REDIRECT_UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /fifty_miles_rankings_men.php
[REQUEST_TIME_FLOAT] => 1519387720.4696
[REQUEST_TIME] => 1519387720
)

[_REQUEST] => Array
(
)

[_ENV] => Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[PWD] => /var/www/fcgi
[SHLVL] => 0
[PHP_FCGI_MAX_REQUESTS] => 100
[ORIG_SCRIPT_NAME] => /fcgi-bin/php56-cgi
[ORIG_PATH_TRANSLATED] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[ORIG_PATH_INFO] => /fifty_miles_rankings_men.php
[ORIG_SCRIPT_FILENAME] => /var/www/fcgi/php56-cgi
[SCRIPT_NAME] => /fifty_miles_rankings_men.php
[REQUEST_URI] => /fifty_miles_rankings_men.php
[QUERY_STRING] =>
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /fifty_miles_rankings_men.php
[REMOTE_PORT] => 50692
[SCRIPT_FILENAME] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[SERVER_ADMIN] => admin@southwesttimetrials.org
[CONTEXT_DOCUMENT_ROOT] => /var/www/fcgi/
[CONTEXT_PREFIX] => /fcgi-bin/
[REQUEST_SCHEME] => http
[DOCUMENT_ROOT] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs
[REMOTE_ADDR] => 54.144.73.205
[SERVER_PORT] => 80
[SERVER_ADDR] => 10.10.110.34
[SERVER_NAME] => southwesttimetrials.org
[SERVER_SOFTWARE] => Apache
[SERVER_SIGNATURE] =>
[HTTP_IF_MODIFIED_SINCE] => Thu, 14 Dec 2017 08:20:27 GMT
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
[HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
[HTTP_CONNECTION] => close
[HTTP_X_URL_SCHEME] => http
[HTTP_X_FORWARDED_PROTO] => http
[HTTP_X_REAL_IP] => 54.144.73.205
[HTTP_X_FORWARDED_HOST] => southwesttimetrials.org
[HTTP_HOST] => southwesttimetrials.org
[UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => application/x-httpd-php56
[REDIRECT_UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /fifty_miles_rankings_men.php
[REQUEST_TIME_FLOAT] => 1519387720.4696
[REQUEST_TIME] => 1519387720
)

[GLOBALS] => Array
*RECURSION*
[live] =>
[email] => tony.farnell@btinternet.com
[url] => http://www.southwesttimetrials.org
[path] => www.southwesttimetrials.org
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php
[line] => 13
[function] => mysqli_connect
[args] => Array
(
[0] => 213.171.218.234
[1] => tonyfarnell
[2] => A17k06f46
[3] => swtts
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
[line] => 3
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php
)

[function] => require
)

[3] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 2
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
)

[function] => include
)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php' on line 15:
mysqli_set_charset() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_set_charset() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php
[3] => 15
[4] => Array
(
[_GET] => Array
(
)

[_POST] => Array
(
)

[_COOKIE] => Array
(
)

[_FILES] => Array
(
)

[_SERVER] => Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[PWD] => /var/www/fcgi
[SHLVL] => 0
[PHP_FCGI_MAX_REQUESTS] => 100
[ORIG_SCRIPT_NAME] => /fcgi-bin/php56-cgi
[ORIG_PATH_TRANSLATED] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[ORIG_PATH_INFO] => /fifty_miles_rankings_men.php
[ORIG_SCRIPT_FILENAME] => /var/www/fcgi/php56-cgi
[SCRIPT_NAME] => /fifty_miles_rankings_men.php
[REQUEST_URI] => /fifty_miles_rankings_men.php
[QUERY_STRING] =>
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /fifty_miles_rankings_men.php
[REMOTE_PORT] => 50692
[SCRIPT_FILENAME] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[SERVER_ADMIN] => admin@southwesttimetrials.org
[CONTEXT_DOCUMENT_ROOT] => /var/www/fcgi/
[CONTEXT_PREFIX] => /fcgi-bin/
[REQUEST_SCHEME] => http
[DOCUMENT_ROOT] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs
[REMOTE_ADDR] => 54.144.73.205
[SERVER_PORT] => 80
[SERVER_ADDR] => 10.10.110.34
[SERVER_NAME] => southwesttimetrials.org
[SERVER_SOFTWARE] => Apache
[SERVER_SIGNATURE] =>
[HTTP_IF_MODIFIED_SINCE] => Thu, 14 Dec 2017 08:20:27 GMT
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
[HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
[HTTP_CONNECTION] => close
[HTTP_X_URL_SCHEME] => http
[HTTP_X_FORWARDED_PROTO] => http
[HTTP_X_REAL_IP] => 54.144.73.205
[HTTP_X_FORWARDED_HOST] => southwesttimetrials.org
[HTTP_HOST] => southwesttimetrials.org
[UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => application/x-httpd-php56
[REDIRECT_UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /fifty_miles_rankings_men.php
[REQUEST_TIME_FLOAT] => 1519387720.4696
[REQUEST_TIME] => 1519387720
)

[_REQUEST] => Array
(
)

[_ENV] => Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[PWD] => /var/www/fcgi
[SHLVL] => 0
[PHP_FCGI_MAX_REQUESTS] => 100
[ORIG_SCRIPT_NAME] => /fcgi-bin/php56-cgi
[ORIG_PATH_TRANSLATED] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[ORIG_PATH_INFO] => /fifty_miles_rankings_men.php
[ORIG_SCRIPT_FILENAME] => /var/www/fcgi/php56-cgi
[SCRIPT_NAME] => /fifty_miles_rankings_men.php
[REQUEST_URI] => /fifty_miles_rankings_men.php
[QUERY_STRING] =>
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /fifty_miles_rankings_men.php
[REMOTE_PORT] => 50692
[SCRIPT_FILENAME] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[SERVER_ADMIN] => admin@southwesttimetrials.org
[CONTEXT_DOCUMENT_ROOT] => /var/www/fcgi/
[CONTEXT_PREFIX] => /fcgi-bin/
[REQUEST_SCHEME] => http
[DOCUMENT_ROOT] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs
[REMOTE_ADDR] => 54.144.73.205
[SERVER_PORT] => 80
[SERVER_ADDR] => 10.10.110.34
[SERVER_NAME] => southwesttimetrials.org
[SERVER_SOFTWARE] => Apache
[SERVER_SIGNATURE] =>
[HTTP_IF_MODIFIED_SINCE] => Thu, 14 Dec 2017 08:20:27 GMT
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
[HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
[HTTP_CONNECTION] => close
[HTTP_X_URL_SCHEME] => http
[HTTP_X_FORWARDED_PROTO] => http
[HTTP_X_REAL_IP] => 54.144.73.205
[HTTP_X_FORWARDED_HOST] => southwesttimetrials.org
[HTTP_HOST] => southwesttimetrials.org
[UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => application/x-httpd-php56
[REDIRECT_UNIQUE_ID] => WpAESP5-YQTLIebn4MPEHgAAABI
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /fifty_miles_rankings_men.php
[REQUEST_TIME_FLOAT] => 1519387720.4696
[REQUEST_TIME] => 1519387720
)

[GLOBALS] => Array
*RECURSION*
[live] =>
[email] => tony.farnell@btinternet.com
[url] => http://www.southwesttimetrials.org
[path] => www.southwesttimetrials.org
[dbc] =>
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php
[line] => 15
[function] => mysqli_set_charset
[args] => Array
(
[0] =>
[1] => utf8
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
[line] => 3
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/mysql.inc.php
)

[function] => require
)

[3] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 2
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
)

[function] => include
)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 276:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 276
[4] => Array
(
[dbc] =>
[name_length] => 24
[page_name] => fifty_miles_rankings_men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 276
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => update pages set hits = hits + 1 where filename = 'fifty_miles_rankings_men'
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
[line] => 5
[function] => hit_counter
[args] => Array
(
[0] =>
)

)

[3] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 2
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
)

[function] => include
)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 279:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 279
[4] => Array
(
[dbc] =>
[name_length] => 24
[page_name] => fifty_miles_rankings_men
[hit_query] =>
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 279
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => select * from hits order by date desc limit 1
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
[line] => 5
[function] => hit_counter
[args] => Array
(
[0] =>
)

)

[3] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 2
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
)

[function] => include
)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 280:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 280
[4] => Array
(
[dbc] =>
[name_length] => 24
[page_name] => fifty_miles_rankings_men
[hit_query] =>
[last_date_query] =>
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 280
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
[line] => 5
[function] => hit_counter
[args] => Array
(
[0] =>
)

)

[3] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 2
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
)

[function] => include
)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 335:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 335
[4] => Array
(
[dbc] =>
[name_length] => 24
[page_name] => fifty_miles_rankings_men
[hit_query] =>
[last_date_query] =>
[last_date_array] =>
[id] =>
[last_date] =>
[current_date] => 2018-02-23
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 335
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => insert into hits (date, fifty_miles_rankings_men) values (now(), 1)
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
[line] => 5
[function] => hit_counter
[args] => Array
(
[0] =>
)

)

[3] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 2
[args] => Array
(
[0] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_header.inc.php
)

[function] => include
)

)

SWCTTs 50 Miles Men

South West Cycling Time Trials

50 Miles Rankings Men 2018

Men 50 Miles Rankings 2017

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 34:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 34
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[year] => 2017
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 34
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2017' and courses.distance = '50' and clubs.swdc
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 14
[function] => display_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 2017
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 36:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 36
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[year] => 2017
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 36
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 14
[function] => display_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 2017
)

)

)

PosNameClubTime

Men 40-49 50 Miles Rankings 2017

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 83:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 83
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 40-49
[lower_age_limit] => 39
[upper_age_limit] => 50
[year] => 2017
[age_qualifying_date] => 2017-12-31 23:59:59
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 83
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2017' and courses.distance = '50' and clubs.swdc and timestampdiff(YEAR, riders.date_of_birth, '2017-12-31 23:59:59') > '39' and timestampdiff(YEAR, riders.date_of_birth, '2017-12-31 23:59:59') < '50'
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 15
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 40-49
[4] => 39
[5] => 50
[6] => 2017
[7] => 2017-12-31 23:59:59
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 85:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 85
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 40-49
[lower_age_limit] => 39
[upper_age_limit] => 50
[year] => 2017
[age_qualifying_date] => 2017-12-31 23:59:59
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 85
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 15
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 40-49
[4] => 39
[5] => 50
[6] => 2017
[7] => 2017-12-31 23:59:59
)

)

)

PosNameClubTime

Men 50-59 50 Miles Rankings 2017

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 83:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 83
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 50-59
[lower_age_limit] => 49
[upper_age_limit] => 60
[year] => 2017
[age_qualifying_date] => 2017-12-31 23:59:59
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 83
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2017' and courses.distance = '50' and clubs.swdc and timestampdiff(YEAR, riders.date_of_birth, '2017-12-31 23:59:59') > '49' and timestampdiff(YEAR, riders.date_of_birth, '2017-12-31 23:59:59') < '60'
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 16
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 50-59
[4] => 49
[5] => 60
[6] => 2017
[7] => 2017-12-31 23:59:59
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 85:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 85
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 50-59
[lower_age_limit] => 49
[upper_age_limit] => 60
[year] => 2017
[age_qualifying_date] => 2017-12-31 23:59:59
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 85
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 16
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 50-59
[4] => 49
[5] => 60
[6] => 2017
[7] => 2017-12-31 23:59:59
)

)

)

PosNameClubTime

Men 60+ 50 Miles Rankings 2017

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 83:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 83
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 60+
[lower_age_limit] => 59
[upper_age_limit] => 80
[year] => 2017
[age_qualifying_date] => 2017-12-31 23:59:59
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 83
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2017' and courses.distance = '50' and clubs.swdc and timestampdiff(YEAR, riders.date_of_birth, '2017-12-31 23:59:59') > '59' and timestampdiff(YEAR, riders.date_of_birth, '2017-12-31 23:59:59') < '80'
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 17
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 60+
[4] => 59
[5] => 80
[6] => 2017
[7] => 2017-12-31 23:59:59
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 85:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 85
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 60+
[lower_age_limit] => 59
[upper_age_limit] => 80
[year] => 2017
[age_qualifying_date] => 2017-12-31 23:59:59
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 85
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 17
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 60+
[4] => 59
[5] => 80
[6] => 2017
[7] => 2017-12-31 23:59:59
)

)

)

PosNameClubTime

Men 50 Miles Rankings 2016

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 34:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 34
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[year] => 2016
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 34
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2016' and courses.distance = '50' and clubs.swdc
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 14
[function] => display_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 2016
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 36:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 36
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[year] => 2016
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 36
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 14
[function] => display_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 2016
)

)

)

PosNameClubTime

Men 40-49 50 Miles Rankings 2016

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 83:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 83
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 40-49
[lower_age_limit] => 39
[upper_age_limit] => 50
[year] => 2016
[age_qualifying_date] => 2016-12-31 23:59:59
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 83
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2016' and courses.distance = '50' and clubs.swdc and timestampdiff(YEAR, riders.date_of_birth, '2016-12-31 23:59:59') > '39' and timestampdiff(YEAR, riders.date_of_birth, '2016-12-31 23:59:59') < '50'
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 15
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 40-49
[4] => 39
[5] => 50
[6] => 2016
[7] => 2016-12-31 23:59:59
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 85:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 85
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 40-49
[lower_age_limit] => 39
[upper_age_limit] => 50
[year] => 2016
[age_qualifying_date] => 2016-12-31 23:59:59
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 85
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 15
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 40-49
[4] => 39
[5] => 50
[6] => 2016
[7] => 2016-12-31 23:59:59
)

)

)

PosNameClubTime

Men 50-59 50 Miles Rankings 2016

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 83:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 83
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 50-59
[lower_age_limit] => 49
[upper_age_limit] => 60
[year] => 2016
[age_qualifying_date] => 2016-12-31 23:59:59
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 83
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2016' and courses.distance = '50' and clubs.swdc and timestampdiff(YEAR, riders.date_of_birth, '2016-12-31 23:59:59') > '49' and timestampdiff(YEAR, riders.date_of_birth, '2016-12-31 23:59:59') < '60'
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 16
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 50-59
[4] => 49
[5] => 60
[6] => 2016
[7] => 2016-12-31 23:59:59
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 85:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 85
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 50-59
[lower_age_limit] => 49
[upper_age_limit] => 60
[year] => 2016
[age_qualifying_date] => 2016-12-31 23:59:59
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 85
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 16
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 50-59
[4] => 49
[5] => 60
[6] => 2016
[7] => 2016-12-31 23:59:59
)

)

)

PosNameClubTime

Men 60+ 50 Miles Rankings 2016

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 83:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 83
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 60+
[lower_age_limit] => 59
[upper_age_limit] => 80
[year] => 2016
[age_qualifying_date] => 2016-12-31 23:59:59
[display_gender] => Men
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 83
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => SELECT date_format(calendar.date, '%d/%m/%Y') as race_date, timestampdiff(YEAR, riders.date_of_birth, calendar.date) as age, riders.name as name, riders.gender as gender, clubs.club as club, clubs.swdc as swdc, courses.course as course, courses.distance as distance, min(results.time) as time
FROM results, calendar, courses, riders, clubs
WHERE results.raceid = calendar.id and calendar.courseid = courses.id and results.riderid = riders.id and results.clubid = clubs.id and riders.gender = 'M' and year(calendar.date) = '2016' and courses.distance = '50' and clubs.swdc and timestampdiff(YEAR, riders.date_of_birth, '2016-12-31 23:59:59') > '59' and timestampdiff(YEAR, riders.date_of_birth, '2016-12-31 23:59:59') < '80'
GROUP BY results.riderid
ORDER BY time asc
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 17
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 60+
[4] => 59
[5] => 80
[6] => 2016
[7] => 2016-12-31 23:59:59
)

)

)

An error occurred in script '/home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php' on line 85:
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
[2] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[3] => 85
[4] => Array
(
[dbc] =>
[distance] => 50
[gender] => M
[age_group] => 60+
[lower_age_limit] => 59
[upper_age_limit] => 80
[year] => 2016
[age_qualifying_date] => 2016-12-31 23:59:59
[display_gender] => Men
[calendar_query] =>
[position] => 0
)

)

)

[1] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/includes/swtts_functions.inc.php
[line] => 85
[function] => mysqli_fetch_assoc
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /home/hp3-linc5-nfs2-y/077/1215077/user/htdocs/fifty_miles_rankings_men.php
[line] => 17
[function] => display_vet_rankings
[args] => Array
(
[0] =>
[1] => 50
[2] => M
[3] => 60+
[4] => 59
[5] => 80
[6] => 2016
[7] => 2016-12-31 23:59:59
)

)

)

PosNameClubTime