There is an error in the query: SELECT count(tot.plaatsnr)
FROM wedstrijden AS we
LEFT JOIN ritten AS ri
ON we.wedstrijdid = ri.wedstrijdid
LEFT JOIN totuitslagen AS tot
ON ri.ritid = tot.ritid
WHERE tot.coureurid = '4361'
AND we.wedstrijdid = '2746'
AND tot.plaatsnr = '2' This error is: Server shutdown in progress