$recent]); } $coaches = qdb_coach_activity_list($pdo, $tokenRec); qdb_discard($tmpDb, $lockFp); json_success(['coaches' => $coaches]); } catch (Throwable $e) { qdb_discard($tmpDb, $lockFp); error_log('coaches GET: ' . $e->getMessage()); json_error('SERVER_ERROR', 'Server error', 500); }