https://prod.golmanagerpanel.com/api/es/player/list?isIos=true&p=api%2Fes%2Fplayer%2Flist&version_app=4.0.6

Query Metrics

343 Database Queries
17 Different statements
2511.59 ms Query time
9 Invalid entities

Queries

Group similar statements

# Time Info
1 54.31 ms
SELECT
        *
        FROM
        customer_device
        WHERE
            :token LIKE CONCAT(token,'%') AND
            `status` = 0
Parameters:
[
  "token" => "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MjY4MzIzNjUsImV4cCI6MTcyNjgzNTk2NSwicm9sZXMiOlsiUk9MRV9DVVNUT01FUiJdLCJ1c2VybmFtZSI6ImRhdmlkZm05QGhvdG1haWwuY29tIn0.F8Ggu_yBbHs6ZtvExoF3CanzK1uptkoEGQ-jZ2vVSTPc2hSGjReGqXpxImcvCMNDdC2L_5M2inx8RSxON4b3S1813nT7BjdTd8CrZQDmg7MjAIiDonqUEB9DgUXbfhvivwTkEba8u9Jaw4cTVa4vZo5KbSLWLr9le4pEOUds7bPFf6bsN8V6MCghXc37Z_1IVLAd2Zqt3SODqI52ekaKB1cBZqi9qwfSZsRktkF7LKkTKlZvWeiyztzZGI8DxMis0ulcaQn84FfSPgfKVvQcYsnlUkYRNJ1WBsNBjayvXfrAnLbtMVC1DOaXja6ZZ2k3RnucaL5JUZRvO9eEz3kETcBVRexS-9qa64kE7_WgbivEZjFbOuYOBTn1TpRzFLgq9XYb1OLQ8r5h7PUH3-gz4W4TEAxju-lUr8M4XSB832uRR59RnUqVQ7QBPUs2BAmrTFCRN5yn8S9SAPUdMrjNIknIpkcR1peleYG0wsAAT854Pzg_xJyE-OEskbh176WCryWlrOrKjsI99w1XxpP5yAAGSTtFZMu7f62Q9T4lJyEdl50_huSQRtDUu79JvClCD7Hgg4Fd7nt7MMXesvUpX04vB05d9bZrDGKW6D8Ce6FczjKfA52iYbG8_UPeD35Z0nROO9ietXIXCeDQgN56SKfLijMcgZFvbA7dvxy4xt4"
]
2 11.09 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.username AS username_3, t0.roles AS roles_4, t0.password AS password_5, t0.plain_password AS plain_password_6, t0.enabled AS enabled_7, t0.name AS name_8, t0.surname AS surname_9, t0.address AS address_10, t0.celular AS celular_11, t0.image AS image_12, t0.created_at AS created_at_13, t0.updated_at AS updated_at_14, t0.country_id AS country_id_15, t0.season_active AS season_active_16, t0.type_account AS type_account_17, t0.is_pro AS is_pro_18, t0.purchase AS purchase_19, t0.purchase_platform AS purchase_platform_20, t0.membership_id AS membership_id_21, t0.coupon_status AS coupon_status_22, t0.phone AS phone_23, t0.google_auth_code AS google_auth_code_24, t0.google_auth_code_verified AS google_auth_code_verified_25, t0.date_of_birth AS date_of_birth_26, t0.deleted_at AS deleted_at_27, t0.is_deleted AS is_deleted_28, t0.country_id AS country_id_29 FROM customer t0 WHERE t0.email = ? LIMIT 1
Parameters:
[
  "davidfm9@hotmail.com"
]
3 9.29 ms
SELECT t0.id AS id_1, t0.year AS year_2, t0.is_active AS is_active_3, t0.team_id AS team_id_4, t0.customer_id AS customer_id_5, t0.country_id AS country_id_6 FROM season t0 WHERE t0.customer_id = ?
Parameters:
[
  25546
]
4 157.60 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? ORDER BY t0.dorsal ASC
Parameters:
[
  26477
]
5 3.97 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116995
]
6 8.67 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116994
]
7 6.46 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111647
]
8 19.71 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111647
  26477
]
9 38.74 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  114120
]
10 10.56 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  1
]
11 5.28 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  1
]
12 4.98 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111647
]
13 17.26 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
14 20.22 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
15 38.74 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111647
  "seasonplayer_id" => 114120
  "season_id" => 26477
  "alignment" => "%"id":111647%"
]
16 76.45 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111647
  "season_id" => 26477
]
17 6.00 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111647
]
18 5.51 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111647
  "seasonplayer_id" => 114120
  "season_id" => 26477
  "alignment" => "%"id":111647%"
]
19 12.03 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111647
]
20 5.37 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111647
]
21 7.76 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
22 3.35 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
23 5.81 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111647
  "seasonplayer_id" => 114120
  "season_id" => 26477
  "alignment" => "%"id":111647%"
]
24 4.91 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.image AS image_3, t0.image_trainer AS image_trainer_4, t0.updated_at AS updated_at_5, t0.category AS category_6, t0.monthly_cost AS monthly_cost_7, t0.kit_payment_cost AS kit_payment_cost_8, t0.other_payment_cost AS other_payment_cost_9, t0.stadium_name AS stadium_name_10, t0.number_clubes_league AS number_clubes_league_11, t0.type_soccer_id AS type_soccer_id_12, t0.alignment_default_u7_id AS alignment_default_u7_id_13, t0.alignment_default_u8_id AS alignment_default_u8_id_14, t0.alignment_default_u11_id AS alignment_default_u11_id_15 FROM team t0 WHERE t0.id = ?
Parameters:
[
  25305
]
25 2.50 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112606
]
26 29.91 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112606
  26477
]
27 51.71 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115101
]
28 17.65 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  5
]
29 18.66 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  5
]
30 19.35 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112606
]
31 8.80 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
32 14.59 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
33 58.70 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112606
  "seasonplayer_id" => 115101
  "season_id" => 26477
  "alignment" => "%"id":112606%"
]
34 22.38 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112606
  "season_id" => 26477
]
35 7.53 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112606
]
36 3.61 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112606
  "seasonplayer_id" => 115101
  "season_id" => 26477
  "alignment" => "%"id":112606%"
]
37 3.54 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112606
]
38 5.59 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112606
]
39 5.47 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
40 3.21 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
41 3.72 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112606
  "seasonplayer_id" => 115101
  "season_id" => 26477
  "alignment" => "%"id":112606%"
]
42 7.85 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111648
]
43 3.42 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111648
  26477
]
44 4.21 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  114121
]
45 2.61 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  2
]
46 3.66 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  2
]
47 3.76 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111648
]
48 2.57 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
49 3.73 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
50 8.14 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111648
  "seasonplayer_id" => 114121
  "season_id" => 26477
  "alignment" => "%"id":111648%"
]
51 1.96 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111648
  "season_id" => 26477
]
52 4.06 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111648
]
53 2.72 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111648
  "seasonplayer_id" => 114121
  "season_id" => 26477
  "alignment" => "%"id":111648%"
]
54 4.72 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111648
]
55 3.58 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111648
]
56 2.77 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
57 3.19 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
58 10.02 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111648
  "seasonplayer_id" => 114121
  "season_id" => 26477
  "alignment" => "%"id":111648%"
]
59 1.76 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  114597
]
60 4.73 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  114597
  26477
]
61 20.41 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  117304
]
62 3.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  114597
]
63 3.04 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
64 5.47 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
65 8.46 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 114597
  "seasonplayer_id" => 117304
  "season_id" => 26477
  "alignment" => "%"id":114597%"
]
66 8.88 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 114597
  "season_id" => 26477
]
67 5.79 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  114597
]
68 2.73 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 114597
  "seasonplayer_id" => 117304
  "season_id" => 26477
  "alignment" => "%"id":114597%"
]
69 3.27 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  114597
]
70 7.59 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  114597
]
71 3.73 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
72 2.25 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
73 4.94 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 114597
  "seasonplayer_id" => 117304
  "season_id" => 26477
  "alignment" => "%"id":114597%"
]
74 3.80 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111436
]
75 9.02 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111436
  26477
]
76 7.53 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  113909
]
77 8.25 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111436
]
78 4.40 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
79 2.64 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
80 6.12 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111436
  "seasonplayer_id" => 113909
  "season_id" => 26477
  "alignment" => "%"id":111436%"
]
81 19.28 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111436
  "season_id" => 26477
]
82 4.53 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111436
]
83 6.43 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111436
  "seasonplayer_id" => 113909
  "season_id" => 26477
  "alignment" => "%"id":111436%"
]
84 4.13 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111436
]
85 2.63 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111436
]
86 3.00 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
87 3.35 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
88 10.80 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111436
  "seasonplayer_id" => 113909
  "season_id" => 26477
  "alignment" => "%"id":111436%"
]
89 3.65 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112615
]
90 4.47 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112607
]
91 5.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112607
  26477
]
92 3.69 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115102
]
93 1.26 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  3
]
94 4.14 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  3
]
95 1.79 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112607
]
96 12.26 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
97 3.59 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
98 6.23 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112607
  "seasonplayer_id" => 115102
  "season_id" => 26477
  "alignment" => "%"id":112607%"
]
99 8.22 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112607
  "season_id" => 26477
]
100 12.81 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112607
]
101 3.71 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112607
  "seasonplayer_id" => 115102
  "season_id" => 26477
  "alignment" => "%"id":112607%"
]
102 3.36 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112607
]
103 9.33 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112607
]
104 8.16 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
105 6.24 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
106 3.56 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112607
  "seasonplayer_id" => 115102
  "season_id" => 26477
  "alignment" => "%"id":112607%"
]
107 7.67 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112614
]
108 6.84 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112614
  26477
]
109 6.07 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115109
]
110 3.78 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  6
]
111 3.65 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  6
]
112 2.73 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  7
]
113 12.44 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  7
]
114 5.38 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112614
]
115 1.36 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
116 5.00 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
117 3.40 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112614
  "seasonplayer_id" => 115109
  "season_id" => 26477
  "alignment" => "%"id":112614%"
]
118 8.38 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112614
  "season_id" => 26477
]
119 7.78 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112614
]
120 4.62 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112614
  "seasonplayer_id" => 115109
  "season_id" => 26477
  "alignment" => "%"id":112614%"
]
121 5.78 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112614
]
122 2.48 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112614
]
123 6.60 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
124 2.41 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
125 7.70 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112614
  "seasonplayer_id" => 115109
  "season_id" => 26477
  "alignment" => "%"id":112614%"
]
126 5.34 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112608
]
127 5.29 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112608
  26477
]
128 1.54 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115103
]
129 9.44 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112608
]
130 4.01 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
131 4.39 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
132 9.66 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112608
  "seasonplayer_id" => 115103
  "season_id" => 26477
  "alignment" => "%"id":112608%"
]
133 5.76 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112608
  "season_id" => 26477
]
134 3.38 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112608
]
135 7.42 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112608
  "seasonplayer_id" => 115103
  "season_id" => 26477
  "alignment" => "%"id":112608%"
]
136 2.66 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112608
]
137 7.65 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112608
]
138 6.16 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
139 16.53 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
140 9.41 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112608
  "seasonplayer_id" => 115103
  "season_id" => 26477
  "alignment" => "%"id":112608%"
]
141 4.67 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111420
]
142 6.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111420
  26477
]
143 9.71 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  113893
]
144 8.62 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  4
]
145 12.66 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  4
]
146 1.39 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111420
]
147 5.77 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
148 7.63 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
149 19.70 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111420
  "seasonplayer_id" => 113893
  "season_id" => 26477
  "alignment" => "%"id":111420%"
]
150 6.04 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111420
  "season_id" => 26477
]
151 8.50 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111420
]
152 5.16 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111420
  "seasonplayer_id" => 113893
  "season_id" => 26477
  "alignment" => "%"id":111420%"
]
153 12.40 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111420
]
154 19.22 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111420
]
155 1.91 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
156 2.95 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
157 8.70 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111420
  "seasonplayer_id" => 113893
  "season_id" => 26477
  "alignment" => "%"id":111420%"
]
158 4.41 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112609
]
159 3.12 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112609
  26477
]
160 4.84 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115104
]
161 13.92 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112609
]
162 4.74 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
163 3.91 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
164 7.84 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112609
  "seasonplayer_id" => 115104
  "season_id" => 26477
  "alignment" => "%"id":112609%"
]
165 3.62 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112609
  "season_id" => 26477
]
166 0.64 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112609
]
167 3.16 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112609
  "seasonplayer_id" => 115104
  "season_id" => 26477
  "alignment" => "%"id":112609%"
]
168 3.61 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112609
]
169 3.36 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112609
]
170 2.71 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
171 3.87 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
172 5.56 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112609
  "seasonplayer_id" => 115104
  "season_id" => 26477
  "alignment" => "%"id":112609%"
]
173 3.93 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112612
]
174 3.30 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111649
]
175 3.53 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111649
  26477
]
176 4.76 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  114122
]
177 3.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111649
]
178 5.52 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
179 3.85 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
180 5.25 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111649
  "seasonplayer_id" => 114122
  "season_id" => 26477
  "alignment" => "%"id":111649%"
]
181 3.52 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111649
  "season_id" => 26477
]
182 5.91 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111649
]
183 4.19 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111649
  "seasonplayer_id" => 114122
  "season_id" => 26477
  "alignment" => "%"id":111649%"
]
184 3.80 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111649
]
185 2.92 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111649
]
186 2.78 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
187 0.98 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
188 8.96 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111649
  "seasonplayer_id" => 114122
  "season_id" => 26477
  "alignment" => "%"id":111649%"
]
189 3.22 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111437
]
190 7.31 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111437
  26477
]
191 10.84 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  113910
]
192 0.75 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111437
]
193 2.01 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
194 5.61 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
195 7.49 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111437
  "seasonplayer_id" => 113910
  "season_id" => 26477
  "alignment" => "%"id":111437%"
]
196 12.95 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111437
  "season_id" => 26477
]
197 3.72 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111437
]
198 9.28 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111437
  "seasonplayer_id" => 113910
  "season_id" => 26477
  "alignment" => "%"id":111437%"
]
199 8.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111437
]
200 3.59 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111437
]
201 7.74 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
202 7.64 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
203 7.99 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111437
  "seasonplayer_id" => 113910
  "season_id" => 26477
  "alignment" => "%"id":111437%"
]
204 7.30 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  113536
]
205 8.58 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  113536
  26477
]
206 30.67 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  116126
]
207 3.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  113536
]
208 1.81 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
209 3.60 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
210 13.05 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 113536
  "seasonplayer_id" => 116126
  "season_id" => 26477
  "alignment" => "%"id":113536%"
]
211 7.64 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 113536
  "season_id" => 26477
]
212 4.59 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  113536
]
213 3.72 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 113536
  "seasonplayer_id" => 116126
  "season_id" => 26477
  "alignment" => "%"id":113536%"
]
214 3.81 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  113536
]
215 2.68 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  113536
]
216 3.72 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
217 5.64 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
218 12.82 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 113536
  "seasonplayer_id" => 116126
  "season_id" => 26477
  "alignment" => "%"id":113536%"
]
219 3.73 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112845
]
220 3.23 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112845
  26477
]
221 20.81 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115347
]
222 3.40 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112845
]
223 3.83 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
224 3.58 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
225 36.72 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112845
  "seasonplayer_id" => 115347
  "season_id" => 26477
  "alignment" => "%"id":112845%"
]
226 5.77 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112845
  "season_id" => 26477
]
227 3.75 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112845
]
228 2.11 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112845
  "seasonplayer_id" => 115347
  "season_id" => 26477
  "alignment" => "%"id":112845%"
]
229 4.49 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112845
]
230 4.62 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112845
]
231 3.77 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
232 3.39 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
233 2.77 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112845
  "seasonplayer_id" => 115347
  "season_id" => 26477
  "alignment" => "%"id":112845%"
]
234 4.57 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112616
]
235 6.56 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116906
]
236 0.86 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  116906
  26477
]
237 4.30 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  119846
]
238 4.51 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116906
]
239 4.76 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
240 3.61 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
241 3.67 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116906
  "seasonplayer_id" => 119846
  "season_id" => 26477
  "alignment" => "%"id":116906%"
]
242 6.79 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 116906
  "season_id" => 26477
]
243 3.75 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116906
]
244 3.74 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 116906
  "seasonplayer_id" => 119846
  "season_id" => 26477
  "alignment" => "%"id":116906%"
]
245 1.86 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  116906
]
246 3.57 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116906
]
247 4.81 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
248 2.37 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
249 3.87 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116906
  "seasonplayer_id" => 119846
  "season_id" => 26477
  "alignment" => "%"id":116906%"
]
250 4.70 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112613
]
251 3.47 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116996
]
252 2.43 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  116996
  26477
]
253 4.75 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  119936
]
254 3.51 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116996
]
255 7.61 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
256 5.25 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
257 7.33 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116996
  "seasonplayer_id" => 119936
  "season_id" => 26477
  "alignment" => "%"id":116996%"
]
258 4.70 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 116996
  "season_id" => 26477
]
259 20.73 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116996
]
260 8.74 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 116996
  "seasonplayer_id" => 119936
  "season_id" => 26477
  "alignment" => "%"id":116996%"
]
261 3.80 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  116996
]
262 3.67 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116996
]
263 3.78 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
264 3.62 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
265 4.62 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116996
  "seasonplayer_id" => 119936
  "season_id" => 26477
  "alignment" => "%"id":116996%"
]
266 1.82 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112610
]
267 10.61 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116997
]
268 3.47 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  116997
  26477
]
269 3.51 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  119937
]
270 6.50 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116997
]
271 8.72 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
272 4.77 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
273 3.59 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116997
  "seasonplayer_id" => 119937
  "season_id" => 26477
  "alignment" => "%"id":116997%"
]
274 4.71 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 116997
  "season_id" => 26477
]
275 4.42 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116997
]
276 4.16 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 116997
  "seasonplayer_id" => 119937
  "season_id" => 26477
  "alignment" => "%"id":116997%"
]
277 4.81 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  116997
]
278 4.66 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116997
]
279 3.41 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
280 3.97 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
281 6.43 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116997
  "seasonplayer_id" => 119937
  "season_id" => 26477
  "alignment" => "%"id":116997%"
]
282 5.94 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112763
]
283 0.82 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112611
]
284 5.38 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119947
]
285 5.45 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119947
  26477
]
286 4.02 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  123067
]
287 4.20 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119947
]
288 1.52 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
289 6.89 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
290 5.93 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119947
  "seasonplayer_id" => 123067
  "season_id" => 26477
  "alignment" => "%"id":119947%"
]
291 3.54 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119947
  "season_id" => 26477
]
292 7.16 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119947
]
293 8.41 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119947
  "seasonplayer_id" => 123067
  "season_id" => 26477
  "alignment" => "%"id":119947%"
]
294 4.00 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119947
]
295 3.47 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119947
]
296 3.77 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
297 4.61 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
298 5.67 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119947
  "seasonplayer_id" => 123067
  "season_id" => 26477
  "alignment" => "%"id":119947%"
]
299 8.79 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119948
]
300 4.94 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119948
  26477
]
301 5.38 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  123068
]
302 4.76 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119948
]
303 1.99 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
304 3.36 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
305 6.45 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119948
  "seasonplayer_id" => 123068
  "season_id" => 26477
  "alignment" => "%"id":119948%"
]
306 6.00 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119948
  "season_id" => 26477
]
307 3.34 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119948
]
308 4.18 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119948
  "seasonplayer_id" => 123068
  "season_id" => 26477
  "alignment" => "%"id":119948%"
]
309 0.77 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119948
]
310 4.25 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119948
]
311 10.30 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
312 7.50 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
313 3.37 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119948
  "seasonplayer_id" => 123068
  "season_id" => 26477
  "alignment" => "%"id":119948%"
]
314 4.29 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119949
]
315 1.23 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119949
  26477
]
316 5.96 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  123069
]
317 2.35 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119949
]
318 7.99 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
319 3.57 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
320 5.88 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119949
  "seasonplayer_id" => 123069
  "season_id" => 26477
  "alignment" => "%"id":119949%"
]
321 4.64 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119949
  "season_id" => 26477
]
322 7.52 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119949
]
323 4.99 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119949
  "seasonplayer_id" => 123069
  "season_id" => 26477
  "alignment" => "%"id":119949%"
]
324 4.57 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119949
]
325 6.68 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119949
]
326 6.72 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
327 3.92 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
328 3.12 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119949
  "seasonplayer_id" => 123069
  "season_id" => 26477
  "alignment" => "%"id":119949%"
]
329 4.62 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119164
]
330 3.72 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119164
  26477
]
331 5.75 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  122217
]
332 5.13 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119164
]
333 6.51 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
334 2.30 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
335 9.52 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119164
  "seasonplayer_id" => 122217
  "season_id" => 26477
  "alignment" => "%"id":119164%"
]
336 5.22 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119164
  "season_id" => 26477
]
337 5.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119164
]
338 7.21 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119164
  "seasonplayer_id" => 122217
  "season_id" => 26477
  "alignment" => "%"id":119164%"
]
339 3.74 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119164
]
340 7.88 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119164
]
341 3.71 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
342 3.17 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
343 6.18 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119164
  "seasonplayer_id" => 122217
  "season_id" => 26477
  "alignment" => "%"id":119164%"
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Entities Mapping

Class Mapping errors
App\Entity\Customer
  • The association App\Entity\Customer#exerciseQualifications refers to the owning side field App\Entity\ExerciseQualification#customer_id which does not exist.
App\Entity\Country No errors.
App\Entity\Season No errors.
App\Entity\Suggestion No errors.
App\Entity\CouponCustomer No errors.
App\Entity\Notification No errors.
App\Entity\ExerciseQualification
  • The association App\Entity\ExerciseQualification#exercise refers to the inverse side field App\Entity\Exercise#qualifications which does not exist.
  • The association App\Entity\ExerciseQualification#customer refers to the inverse side field App\Entity\Customer#exerciseQualification which does not exist.
  • The association App\Entity\ExerciseQualification#exercises refers to the owning side field App\Entity\Exercise#qualifications which does not exist.
App\Entity\Strategy No errors.
App\Entity\Team
  • The association App\Entity\Team#typeSoccer refers to the inverse side field App\Entity\TypeSoccer#teams which does not exist.
App\Entity\SeasonPlayer
  • The association App\Entity\SeasonPlayer#minutes refers to the owning side field App\Entity\Minutes#player_id which does not exist.
  • The association App\Entity\SeasonPlayer#playerWeights refers to the owning side field App\Entity\PlayerWeight#season_player_id which does not exist.
App\Entity\Game
  • The association App\Entity\Game#minutes refers to the owning side field App\Entity\Minutes#game_id which does not exist.
  • The mappings App\Entity\Game#rival_alignment and App\Entity\GameAlignment#game are inconsistent with each other.
  • The mappings App\Entity\Game#seasonplayer and App\Entity\GamePlayerStatistics#game are inconsistent with each other.
App\Entity\TrainingAsist No errors.
App\Entity\ExerciseCalendar
  • The association App\Entity\ExerciseCalendar#exerciseUser refers to the inverse side field App\Entity\ExerciseUser#exerciseCalendar which does not exist.
App\Entity\PlayerJustification No errors.
App\Entity\Player
  • The field App\Entity\Player#convocatorias is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\Convocatoria#players does not contain the required 'inversedBy="convocatorias"' attribute.
  • The association App\Entity\Player#country refers to the inverse side field App\Entity\Country#player which does not exist.
App\Entity\Minutes No errors.
App\Entity\KilometersTraveled No errors.
App\Entity\ShotsOnGoal No errors.
App\Entity\PlayerWeight
  • The mappings App\Entity\PlayerWeight#seasonPlayer and App\Entity\SeasonPlayer#playerWeights are inconsistent with each other.
App\Entity\GamePlayerStatistics No errors.
App\Entity\PlayerSportsInjuries No errors.
App\Entity\Position No errors.
App\Entity\Convocatoria
  • The association App\Entity\Convocatoria#players refers to the owning side field App\Entity\ConvocatoriaPlayer#convocatoria which does not exist.
App\Entity\PositionTranslation No errors.
App\Entity\JustificationType No errors.
App\Entity\JustificationTypeTranslation No errors.
App\Entity\Competition No errors.
App\Entity\CompetitionTranslation No errors.
App\Entity\TypeSoccer No errors.
App\Entity\Tactic No errors.