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

Query Metrics

173 Database Queries
17 Different statements
222.97 ms Query time
9 Invalid entities

Queries

Group similar statements

# Time Info
1 35.76 ms
SELECT
        *
        FROM
        customer_device
        WHERE
            :token LIKE CONCAT(token,'%') AND
            `status` = 0
Parameters:
[
  "token" => "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MjY4NjQwOTQsImV4cCI6MTcyNjg2NzY5NCwicm9sZXMiOlsiUk9MRV9DVVNUT01FUiJdLCJ1c2VybmFtZSI6Im9zY2FyZnMxOTc4QGdtYWlsLmNvbSJ9.f_PoQBNqclabUixAG6fXKsKjfr8tFRenEugJzQwwS3jW_6nsXjrUPMYMmnEhA7_guhZB1we2kkD7YFjmeJ3wFBaOZ_0AFzitZLE7tPGfx5risl9dYdq6KUkcZEs4RVwrXOvDA9VaDxBjUSsKVmEnwkKo5pSfvgLIzfQWKXMlLIfb2OnrAkbcyMUdIMRRHuVbnAuakSVpFSwV4_IrCvo4XDcAtPwf9bNmuItF3d-T6FQfDALTaCa4BHbZHjh4LXhei57im6UzYNYbxrS3JM5ZCUR4Tbe1x6_PO9yaLuSNivL5BCD1LzqvG9S0R27lbt4CxVMN3O6LWCnmG_5PcFWirD5wyFS7m8cXQBK_2oU99CcKyQGvEi6XwNUbs_pKBynaFYYqDnzjSc2NOmiQiWEJDD5h9WzTHlfr7ag9fUg-sqcQaF-_p7CNcHR_UkuNJi8oJU9daujOAe_Lfwi3qRRL2ZwjtwxJkL0qsvRxVaRVVAViWdr9krOsmdEnLhAfjxQcMJC9Rp7BzW9b5dB3_xcMvCFWvBP2axLaeRTXbLdgl8hIfAnKX-hjYvGOcYJhM_QUJZmjPZZnBpq8zS1nmR8raf83QVCcrZ6_e63oqhfggm_Xn6r_iPZ46qYQGqeaySd_IFHRpX0mKcucP-zK0MRdpLvcEsCx7s8fkR_MupolRio"
]
2 1.10 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:
[
  "oscarfs1978@gmail.com"
]
3 0.73 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:
[
  26205
]
4 1.17 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:
[
  27342
]
5 3.86 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:
[
  118216
]
6 0.63 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:
[
  118221
]
7 1.04 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:
[
  118222
]
8 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:
[
  119830
]
9 2.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119830
  27342
]
10 2.48 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:
[
  122946
]
11 0.57 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
]
12 4.68 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
]
13 0.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:
[
  27342
  119830
]
14 0.55 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:
[]
15 0.70 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:
[]
16 2.92 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" => 119830
  "seasonplayer_id" => 122946
  "season_id" => 27342
  "alignment" => "%"id":119830%"
]
17 1.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" => 119830
  "season_id" => 27342
]
18 6.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:
[
  27342
  119830
]
19 3.78 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" => 119830
  "seasonplayer_id" => 122946
  "season_id" => 27342
  "alignment" => "%"id":119830%"
]
20 1.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.player_id = ?
Parameters:
[
  119830
]
21 2.14 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:
[
  27342
  119830
]
22 1.68 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:
[]
23 0.72 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:
[]
24 3.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" => 119830
  "seasonplayer_id" => 122946
  "season_id" => 27342
  "alignment" => "%"id":119830%"
]
25 4.66 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:
[
  26170
]
26 0.75 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:
[
  119634
]
27 0.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:
[
  118217
]
28 0.70 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:
[
  118217
  27342
]
29 0.46 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:
[
  121233
]
30 0.38 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
]
31 0.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:
[
  2
]
32 0.39 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
]
33 0.41 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
]
34 0.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27342
  118217
]
35 0.39 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:
[]
36 0.31 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:
[]
37 2.15 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" => 118217
  "seasonplayer_id" => 121233
  "season_id" => 27342
  "alignment" => "%"id":118217%"
]
38 0.93 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" => 118217
  "season_id" => 27342
]
39 0.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:
[
  27342
  118217
]
40 0.98 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" => 118217
  "seasonplayer_id" => 121233
  "season_id" => 27342
  "alignment" => "%"id":118217%"
]
41 0.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.player_id = ?
Parameters:
[
  118217
]
42 0.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:
[
  27342
  118217
]
43 0.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:
[]
44 1.29 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:
[]
45 3.00 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" => 118217
  "seasonplayer_id" => 121233
  "season_id" => 27342
  "alignment" => "%"id":118217%"
]
46 0.58 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:
[
  118215
]
47 0.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118215
  27342
]
48 0.57 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:
[
  121231
]
49 0.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27342
  118215
]
50 0.44 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:
[]
51 0.38 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:
[]
52 2.75 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" => 118215
  "seasonplayer_id" => 121231
  "season_id" => 27342
  "alignment" => "%"id":118215%"
]
53 1.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" => 118215
  "season_id" => 27342
]
54 0.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 = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27342
  118215
]
55 1.15 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" => 118215
  "seasonplayer_id" => 121231
  "season_id" => 27342
  "alignment" => "%"id":118215%"
]
56 0.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:
[
  118215
]
57 0.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:
[
  27342
  118215
]
58 0.43 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:
[]
59 0.40 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:
[]
60 2.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" => 118215
  "seasonplayer_id" => 121231
  "season_id" => 27342
  "alignment" => "%"id":118215%"
]
61 0.68 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:
[
  118693
]
62 0.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118693
  27342
]
63 0.56 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:
[
  121723
]
64 0.41 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
]
65 0.54 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
]
66 0.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:
[
  27342
  118693
]
67 0.45 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:
[]
68 0.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:
[]
69 2.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" => 118693
  "seasonplayer_id" => 121723
  "season_id" => 27342
  "alignment" => "%"id":118693%"
]
70 1.06 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" => 118693
  "season_id" => 27342
]
71 0.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:
[
  27342
  118693
]
72 1.20 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" => 118693
  "seasonplayer_id" => 121723
  "season_id" => 27342
  "alignment" => "%"id":118693%"
]
73 0.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:
[
  118693
]
74 0.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:
[
  27342
  118693
]
75 0.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:
[]
76 0.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:
[]
77 2.64 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" => 118693
  "seasonplayer_id" => 121723
  "season_id" => 27342
  "alignment" => "%"id":118693%"
]
78 0.63 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:
[
  118098
]
79 0.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:
[
  118098
  27342
]
80 0.55 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:
[
  121114
]
81 0.41 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
]
82 0.54 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
]
83 0.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:
[
  27342
  118098
]
84 0.42 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:
[]
85 0.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:
[]
86 2.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" => 118098
  "seasonplayer_id" => 121114
  "season_id" => 27342
  "alignment" => "%"id":118098%"
]
87 0.99 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" => 118098
  "season_id" => 27342
]
88 0.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:
[
  27342
  118098
]
89 1.12 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" => 118098
  "seasonplayer_id" => 121114
  "season_id" => 27342
  "alignment" => "%"id":118098%"
]
90 0.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.player_id = ?
Parameters:
[
  118098
]
91 0.55 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:
[
  27342
  118098
]
92 0.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:
[]
93 0.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:
[]
94 2.53 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" => 118098
  "seasonplayer_id" => 121114
  "season_id" => 27342
  "alignment" => "%"id":118098%"
]
95 0.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:
[
  118219
]
96 0.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118219
  27342
]
97 0.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:
[
  121235
]
98 0.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:
[
  27342
  118219
]
99 0.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:
[]
100 0.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:
[]
101 2.65 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" => 118219
  "seasonplayer_id" => 121235
  "season_id" => 27342
  "alignment" => "%"id":118219%"
]
102 1.03 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" => 118219
  "season_id" => 27342
]
103 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:
[
  27342
  118219
]
104 1.17 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" => 118219
  "seasonplayer_id" => 121235
  "season_id" => 27342
  "alignment" => "%"id":118219%"
]
105 0.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 = ?
Parameters:
[
  118219
]
106 0.55 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:
[
  27342
  118219
]
107 0.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:
[]
108 0.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:
[]
109 2.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" => 118219
  "seasonplayer_id" => 121235
  "season_id" => 27342
  "alignment" => "%"id":118219%"
]
110 0.68 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:
[
  119512
]
111 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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119512
  27342
]
112 0.62 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:
[
  122584
]
113 0.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:
[
  27342
  119512
]
114 0.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:
[]
115 0.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:
[]
116 2.50 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" => 119512
  "seasonplayer_id" => 122584
  "season_id" => 27342
  "alignment" => "%"id":119512%"
]
117 0.94 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" => 119512
  "season_id" => 27342
]
118 4.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27342
  119512
]
119 4.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" => 119512
  "seasonplayer_id" => 122584
  "season_id" => 27342
  "alignment" => "%"id":119512%"
]
120 0.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 = ?
Parameters:
[
  119512
]
121 1.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:
[
  27342
  119512
]
122 0.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:
[]
123 0.31 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:
[]
124 1.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" => 119512
  "seasonplayer_id" => 122584
  "season_id" => 27342
  "alignment" => "%"id":119512%"
]
125 0.48 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:
[
  118218
]
126 0.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:
[
  118218
  27342
]
127 0.46 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:
[
  121234
]
128 0.34 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
]
129 0.43 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
]
130 0.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:
[
  27342
  118218
]
131 0.29 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:
[]
132 0.27 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:
[]
133 1.65 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" => 118218
  "seasonplayer_id" => 121234
  "season_id" => 27342
  "alignment" => "%"id":118218%"
]
134 0.69 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" => 118218
  "season_id" => 27342
]
135 0.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:
[
  27342
  118218
]
136 0.78 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" => 118218
  "seasonplayer_id" => 121234
  "season_id" => 27342
  "alignment" => "%"id":118218%"
]
137 0.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.player_id = ?
Parameters:
[
  118218
]
138 0.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:
[
  27342
  118218
]
139 0.31 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:
[]
140 0.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:
[]
141 1.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" => 118218
  "seasonplayer_id" => 121234
  "season_id" => 27342
  "alignment" => "%"id":118218%"
]
142 0.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:
[
  118220
]
143 0.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 = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118220
  27342
]
144 0.56 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:
[
  121236
]
145 0.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27342
  118220
]
146 0.38 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:
[]
147 0.33 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:
[]
148 3.16 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" => 118220
  "seasonplayer_id" => 121236
  "season_id" => 27342
  "alignment" => "%"id":118220%"
]
149 0.92 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" => 118220
  "season_id" => 27342
]
150 0.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:
[
  27342
  118220
]
151 1.12 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" => 118220
  "seasonplayer_id" => 121236
  "season_id" => 27342
  "alignment" => "%"id":118220%"
]
152 1.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 = ?
Parameters:
[
  118220
]
153 0.90 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:
[
  27342
  118220
]
154 0.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:
[]
155 0.65 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:
[]
156 3.61 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" => 118220
  "seasonplayer_id" => 121236
  "season_id" => 27342
  "alignment" => "%"id":118220%"
]
157 0.66 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:
[
  118214
]
158 0.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118214
  27342
]
159 0.92 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:
[
  121230
]
160 0.83 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
]
161 0.71 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
]
162 0.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:
[
  27342
  118214
]
163 3.98 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:
[]
164 0.74 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:
[]
165 4.47 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" => 118214
  "seasonplayer_id" => 121230
  "season_id" => 27342
  "alignment" => "%"id":118214%"
]
166 0.90 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" => 118214
  "season_id" => 27342
]
167 0.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:
[
  27342
  118214
]
168 1.03 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" => 118214
  "seasonplayer_id" => 121230
  "season_id" => 27342
  "alignment" => "%"id":118214%"
]
169 0.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 = ?
Parameters:
[
  118214
]
170 0.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:
[
  27342
  118214
]
171 0.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:
[]
172 0.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:
[]
173 3.26 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" => 118214
  "seasonplayer_id" => 121230
  "season_id" => 27342
  "alignment" => "%"id":118214%"
]

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.