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

Query Metrics

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

Queries

Group similar statements

# Time Info
1 34.41 ms
SELECT
        *
        FROM
        customer_device
        WHERE
            :token LIKE CONCAT(token,'%') AND
            `status` = 0
Parameters:
[
  "token" => "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MjY4MzIzNjUsImV4cCI6MTcyNjgzNTk2NSwicm9sZXMiOlsiUk9MRV9DVVNUT01FUiJdLCJ1c2VybmFtZSI6ImRhdmlkZm05QGhvdG1haWwuY29tIn0.F8Ggu_yBbHs6ZtvExoF3CanzK1uptkoEGQ-jZ2vVSTPc2hSGjReGqXpxImcvCMNDdC2L_5M2inx8RSxON4b3S1813nT7BjdTd8CrZQDmg7MjAIiDonqUEB9DgUXbfhvivwTkEba8u9Jaw4cTVa4vZo5KbSLWLr9le4pEOUds7bPFf6bsN8V6MCghXc37Z_1IVLAd2Zqt3SODqI52ekaKB1cBZqi9qwfSZsRktkF7LKkTKlZvWeiyztzZGI8DxMis0ulcaQn84FfSPgfKVvQcYsnlUkYRNJ1WBsNBjayvXfrAnLbtMVC1DOaXja6ZZ2k3RnucaL5JUZRvO9eEz3kETcBVRexS-9qa64kE7_WgbivEZjFbOuYOBTn1TpRzFLgq9XYb1OLQ8r5h7PUH3-gz4W4TEAxju-lUr8M4XSB832uRR59RnUqVQ7QBPUs2BAmrTFCRN5yn8S9SAPUdMrjNIknIpkcR1peleYG0wsAAT854Pzg_xJyE-OEskbh176WCryWlrOrKjsI99w1XxpP5yAAGSTtFZMu7f62Q9T4lJyEdl50_huSQRtDUu79JvClCD7Hgg4Fd7nt7MMXesvUpX04vB05d9bZrDGKW6D8Ce6FczjKfA52iYbG8_UPeD35Z0nROO9ietXIXCeDQgN56SKfLijMcgZFvbA7dvxy4xt4"
]
2 2.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:
[
  "davidfm9@hotmail.com"
]
3 2.43 ms
SELECT t0.id AS id_1, t0.year AS year_2, t0.is_active AS is_active_3, t0.team_id AS team_id_4, t0.customer_id AS customer_id_5, t0.country_id AS country_id_6 FROM season t0 WHERE t0.customer_id = ?
Parameters:
[
  25546
]
4 6.61 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? ORDER BY t0.dorsal ASC
Parameters:
[
  26477
]
5 5.03 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116995
]
6 14.45 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116994
]
7 7.26 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111647
]
8 5.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:
[
  111647
  26477
]
9 3.86 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  114120
]
10 4.31 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  1
]
11 4.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:
[
  1
]
12 3.94 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111647
]
13 2.95 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
14 2.52 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
15 5.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" => 111647
  "seasonplayer_id" => 114120
  "season_id" => 26477
  "alignment" => "%"id":111647%"
]
16 6.07 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111647
  "season_id" => 26477
]
17 1.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:
[
  26477
  111647
]
18 1.23 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111647
  "seasonplayer_id" => 114120
  "season_id" => 26477
  "alignment" => "%"id":111647%"
]
19 4.08 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111647
]
20 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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111647
]
21 1.75 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
22 3.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:
[]
23 2.56 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111647
  "seasonplayer_id" => 114120
  "season_id" => 26477
  "alignment" => "%"id":111647%"
]
24 6.88 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.image AS image_3, t0.image_trainer AS image_trainer_4, t0.updated_at AS updated_at_5, t0.category AS category_6, t0.monthly_cost AS monthly_cost_7, t0.kit_payment_cost AS kit_payment_cost_8, t0.other_payment_cost AS other_payment_cost_9, t0.stadium_name AS stadium_name_10, t0.number_clubes_league AS number_clubes_league_11, t0.type_soccer_id AS type_soccer_id_12, t0.alignment_default_u7_id AS alignment_default_u7_id_13, t0.alignment_default_u8_id AS alignment_default_u8_id_14, t0.alignment_default_u11_id AS alignment_default_u11_id_15 FROM team t0 WHERE t0.id = ?
Parameters:
[
  25305
]
25 0.93 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112606
]
26 5.71 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112606
  26477
]
27 14.75 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115101
]
28 8.02 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  5
]
29 1.93 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  5
]
30 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:
[
  26477
  112606
]
31 1.87 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
32 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:
[]
33 2.19 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112606
  "seasonplayer_id" => 115101
  "season_id" => 26477
  "alignment" => "%"id":112606%"
]
34 2.24 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112606
  "season_id" => 26477
]
35 1.22 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112606
]
36 3.27 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112606
  "seasonplayer_id" => 115101
  "season_id" => 26477
  "alignment" => "%"id":112606%"
]
37 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 = ?
Parameters:
[
  112606
]
38 1.93 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112606
]
39 2.23 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
40 2.17 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
41 5.67 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112606
  "seasonplayer_id" => 115101
  "season_id" => 26477
  "alignment" => "%"id":112606%"
]
42 4.11 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111648
]
43 1.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111648
  26477
]
44 2.79 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  114121
]
45 3.55 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  2
]
46 2.88 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  2
]
47 3.61 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111648
]
48 0.78 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
49 1.83 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
50 3.81 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111648
  "seasonplayer_id" => 114121
  "season_id" => 26477
  "alignment" => "%"id":111648%"
]
51 4.01 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111648
  "season_id" => 26477
]
52 2.79 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111648
]
53 3.80 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111648
  "seasonplayer_id" => 114121
  "season_id" => 26477
  "alignment" => "%"id":111648%"
]
54 4.08 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111648
]
55 7.43 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111648
]
56 1.82 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
57 7.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:
[]
58 4.58 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111648
  "seasonplayer_id" => 114121
  "season_id" => 26477
  "alignment" => "%"id":111648%"
]
59 6.21 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  114597
]
60 6.04 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  114597
  26477
]
61 7.17 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  117304
]
62 1.28 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  114597
]
63 7.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:
[]
64 2.41 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
65 5.21 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 114597
  "seasonplayer_id" => 117304
  "season_id" => 26477
  "alignment" => "%"id":114597%"
]
66 3.72 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 114597
  "season_id" => 26477
]
67 1.97 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  114597
]
68 5.81 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 114597
  "seasonplayer_id" => 117304
  "season_id" => 26477
  "alignment" => "%"id":114597%"
]
69 9.01 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  114597
]
70 2.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 = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  114597
]
71 2.64 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
72 2.86 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
73 3.33 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 114597
  "seasonplayer_id" => 117304
  "season_id" => 26477
  "alignment" => "%"id":114597%"
]
74 4.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:
[
  111436
]
75 2.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 = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111436
  26477
]
76 3.65 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  113909
]
77 3.89 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111436
]
78 4.58 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
79 2.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:
[]
80 3.18 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111436
  "seasonplayer_id" => 113909
  "season_id" => 26477
  "alignment" => "%"id":111436%"
]
81 12.32 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111436
  "season_id" => 26477
]
82 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:
[
  26477
  111436
]
83 5.84 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111436
  "seasonplayer_id" => 113909
  "season_id" => 26477
  "alignment" => "%"id":111436%"
]
84 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 = ?
Parameters:
[
  111436
]
85 2.34 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111436
]
86 18.28 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
87 0.79 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
88 6.82 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111436
  "seasonplayer_id" => 113909
  "season_id" => 26477
  "alignment" => "%"id":111436%"
]
89 7.13 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112615
]
90 9.59 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112607
]
91 15.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 = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112607
  26477
]
92 8.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:
[
  115102
]
93 5.08 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  3
]
94 7.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
]
95 15.02 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112607
]
96 7.86 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
97 1.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:
[]
98 10.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" => 112607
  "seasonplayer_id" => 115102
  "season_id" => 26477
  "alignment" => "%"id":112607%"
]
99 4.95 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112607
  "season_id" => 26477
]
100 6.27 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112607
]
101 3.42 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112607
  "seasonplayer_id" => 115102
  "season_id" => 26477
  "alignment" => "%"id":112607%"
]
102 5.32 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112607
]
103 9.40 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112607
]
104 3.08 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
105 4.55 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
106 3.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" => 112607
  "seasonplayer_id" => 115102
  "season_id" => 26477
  "alignment" => "%"id":112607%"
]
107 4.96 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112614
]
108 23.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112614
  26477
]
109 12.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:
[
  115109
]
110 4.49 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  6
]
111 2.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
]
112 3.58 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  7
]
113 3.00 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  7
]
114 0.95 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112614
]
115 8.04 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
116 3.92 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
117 7.30 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112614
  "seasonplayer_id" => 115109
  "season_id" => 26477
  "alignment" => "%"id":112614%"
]
118 14.62 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112614
  "season_id" => 26477
]
119 3.62 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112614
]
120 7.13 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112614
  "seasonplayer_id" => 115109
  "season_id" => 26477
  "alignment" => "%"id":112614%"
]
121 3.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 = ?
Parameters:
[
  112614
]
122 3.32 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112614
]
123 4.06 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
124 3.78 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
125 23.06 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112614
  "seasonplayer_id" => 115109
  "season_id" => 26477
  "alignment" => "%"id":112614%"
]
126 6.99 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112608
]
127 5.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 = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112608
  26477
]
128 2.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:
[
  115103
]
129 4.66 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112608
]
130 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:
[]
131 0.75 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
132 5.71 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112608
  "seasonplayer_id" => 115103
  "season_id" => 26477
  "alignment" => "%"id":112608%"
]
133 4.16 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112608
  "season_id" => 26477
]
134 1.24 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112608
]
135 2.19 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112608
  "seasonplayer_id" => 115103
  "season_id" => 26477
  "alignment" => "%"id":112608%"
]
136 7.10 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112608
]
137 3.87 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112608
]
138 2.09 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
139 3.81 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
140 3.20 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112608
  "seasonplayer_id" => 115103
  "season_id" => 26477
  "alignment" => "%"id":112608%"
]
141 5.40 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111420
]
142 3.10 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111420
  26477
]
143 3.16 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  113893
]
144 6.11 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  4
]
145 9.21 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  4
]
146 5.61 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111420
]
147 3.79 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
148 6.32 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
149 16.40 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111420
  "seasonplayer_id" => 113893
  "season_id" => 26477
  "alignment" => "%"id":111420%"
]
150 4.70 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111420
  "season_id" => 26477
]
151 3.74 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111420
]
152 2.80 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111420
  "seasonplayer_id" => 113893
  "season_id" => 26477
  "alignment" => "%"id":111420%"
]
153 4.10 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111420
]
154 7.62 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111420
]
155 7.17 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
156 2.98 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
157 10.69 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111420
  "seasonplayer_id" => 113893
  "season_id" => 26477
  "alignment" => "%"id":111420%"
]
158 4.26 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112609
]
159 3.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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112609
  26477
]
160 4.16 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115104
]
161 7.72 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112609
]
162 8.00 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
163 3.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:
[]
164 7.45 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112609
  "seasonplayer_id" => 115104
  "season_id" => 26477
  "alignment" => "%"id":112609%"
]
165 3.19 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112609
  "season_id" => 26477
]
166 3.46 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112609
]
167 4.06 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112609
  "seasonplayer_id" => 115104
  "season_id" => 26477
  "alignment" => "%"id":112609%"
]
168 1.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.player_id = ?
Parameters:
[
  112609
]
169 3.75 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112609
]
170 2.58 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
171 5.75 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
172 3.89 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112609
  "seasonplayer_id" => 115104
  "season_id" => 26477
  "alignment" => "%"id":112609%"
]
173 2.47 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112612
]
174 2.22 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111649
]
175 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:
[
  111649
  26477
]
176 0.99 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  114122
]
177 2.96 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111649
]
178 1.54 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
179 3.47 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
180 6.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" => 111649
  "seasonplayer_id" => 114122
  "season_id" => 26477
  "alignment" => "%"id":111649%"
]
181 3.58 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111649
  "season_id" => 26477
]
182 7.83 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111649
]
183 3.14 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111649
  "seasonplayer_id" => 114122
  "season_id" => 26477
  "alignment" => "%"id":111649%"
]
184 3.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.player_id = ?
Parameters:
[
  111649
]
185 3.63 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111649
]
186 4.99 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
187 4.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:
[]
188 19.11 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111649
  "seasonplayer_id" => 114122
  "season_id" => 26477
  "alignment" => "%"id":111649%"
]
189 7.37 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  111437
]
190 2.82 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  111437
  26477
]
191 4.18 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  113910
]
192 3.61 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111437
]
193 3.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:
[]
194 3.47 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
195 4.69 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111437
  "seasonplayer_id" => 113910
  "season_id" => 26477
  "alignment" => "%"id":111437%"
]
196 5.40 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 111437
  "season_id" => 26477
]
197 2.89 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111437
]
198 3.75 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 111437
  "seasonplayer_id" => 113910
  "season_id" => 26477
  "alignment" => "%"id":111437%"
]
199 1.27 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  111437
]
200 6.02 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  111437
]
201 3.62 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
202 3.67 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
203 3.84 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 111437
  "seasonplayer_id" => 113910
  "season_id" => 26477
  "alignment" => "%"id":111437%"
]
204 4.90 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  113536
]
205 3.98 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  113536
  26477
]
206 4.17 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  116126
]
207 5.19 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  113536
]
208 4.22 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
209 3.15 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
210 5.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" => 113536
  "seasonplayer_id" => 116126
  "season_id" => 26477
  "alignment" => "%"id":113536%"
]
211 2.68 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 113536
  "season_id" => 26477
]
212 4.10 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  113536
]
213 4.87 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 113536
  "seasonplayer_id" => 116126
  "season_id" => 26477
  "alignment" => "%"id":113536%"
]
214 1.23 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  113536
]
215 6.19 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  113536
]
216 1.20 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
217 5.05 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
218 3.94 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 113536
  "seasonplayer_id" => 116126
  "season_id" => 26477
  "alignment" => "%"id":113536%"
]
219 3.77 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112845
]
220 3.87 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  112845
  26477
]
221 3.95 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  115347
]
222 6.98 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112845
]
223 3.78 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
224 3.60 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
225 3.52 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112845
  "seasonplayer_id" => 115347
  "season_id" => 26477
  "alignment" => "%"id":112845%"
]
226 3.51 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 112845
  "season_id" => 26477
]
227 0.87 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112845
]
228 2.70 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 112845
  "seasonplayer_id" => 115347
  "season_id" => 26477
  "alignment" => "%"id":112845%"
]
229 3.49 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  112845
]
230 3.36 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  112845
]
231 3.83 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
232 15.17 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
233 4.23 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 112845
  "seasonplayer_id" => 115347
  "season_id" => 26477
  "alignment" => "%"id":112845%"
]
234 0.71 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112616
]
235 1.55 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116906
]
236 6.72 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  116906
  26477
]
237 2.31 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  119846
]
238 2.65 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116906
]
239 6.85 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
240 0.75 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
241 5.68 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116906
  "seasonplayer_id" => 119846
  "season_id" => 26477
  "alignment" => "%"id":116906%"
]
242 4.01 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 116906
  "season_id" => 26477
]
243 3.40 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116906
]
244 2.60 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 116906
  "seasonplayer_id" => 119846
  "season_id" => 26477
  "alignment" => "%"id":116906%"
]
245 3.96 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  116906
]
246 3.63 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116906
]
247 5.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:
[]
248 4.09 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
249 3.37 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116906
  "seasonplayer_id" => 119846
  "season_id" => 26477
  "alignment" => "%"id":116906%"
]
250 3.94 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112613
]
251 6.28 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  116996
]
252 3.99 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  116996
  26477
]
253 5.00 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  119936
]
254 8.63 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116996
]
255 0.82 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
256 1.73 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
257 5.43 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116996
  "seasonplayer_id" => 119936
  "season_id" => 26477
  "alignment" => "%"id":116996%"
]
258 5.48 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 116996
  "season_id" => 26477
]
259 6.66 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116996
]
260 3.52 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 116996
  "seasonplayer_id" => 119936
  "season_id" => 26477
  "alignment" => "%"id":116996%"
]
261 3.95 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  116996
]
262 4.38 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116996
]
263 5.17 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
264 0.59 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
265 4.04 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116996
  "seasonplayer_id" => 119936
  "season_id" => 26477
  "alignment" => "%"id":116996%"
]
266 0.90 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112610
]
267 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:
[
  116997
]
268 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 = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  116997
  26477
]
269 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:
[
  119937
]
270 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:
[
  26477
  116997
]
271 0.37 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
272 1.67 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
273 2.71 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116997
  "seasonplayer_id" => 119937
  "season_id" => 26477
  "alignment" => "%"id":116997%"
]
274 1.05 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 116997
  "season_id" => 26477
]
275 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:
[
  26477
  116997
]
276 1.07 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 116997
  "seasonplayer_id" => 119937
  "season_id" => 26477
  "alignment" => "%"id":116997%"
]
277 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:
[
  116997
]
278 0.74 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  116997
]
279 0.61 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
280 0.58 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
281 2.94 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 116997
  "seasonplayer_id" => 119937
  "season_id" => 26477
  "alignment" => "%"id":116997%"
]
282 0.79 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112763
]
283 1.22 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  112611
]
284 0.54 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119947
]
285 1.12 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119947
  26477
]
286 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:
[
  123067
]
287 0.93 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119947
]
288 0.58 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
289 0.82 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
290 2.29 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119947
  "seasonplayer_id" => 123067
  "season_id" => 26477
  "alignment" => "%"id":119947%"
]
291 1.01 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119947
  "season_id" => 26477
]
292 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:
[
  26477
  119947
]
293 1.02 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119947
  "seasonplayer_id" => 123067
  "season_id" => 26477
  "alignment" => "%"id":119947%"
]
294 0.92 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119947
]
295 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:
[
  26477
  119947
]
296 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:
[]
297 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:
[]
298 4.51 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119947
  "seasonplayer_id" => 123067
  "season_id" => 26477
  "alignment" => "%"id":119947%"
]
299 1.10 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119948
]
300 4.68 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119948
  26477
]
301 3.58 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  123068
]
302 3.09 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119948
]
303 5.21 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
304 3.58 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
305 8.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" => 119948
  "seasonplayer_id" => 123068
  "season_id" => 26477
  "alignment" => "%"id":119948%"
]
306 2.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" => 119948
  "season_id" => 26477
]
307 2.30 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119948
]
308 4.23 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119948
  "seasonplayer_id" => 123068
  "season_id" => 26477
  "alignment" => "%"id":119948%"
]
309 3.77 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119948
]
310 2.45 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119948
]
311 11.74 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
312 3.55 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
313 4.71 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119948
  "seasonplayer_id" => 123068
  "season_id" => 26477
  "alignment" => "%"id":119948%"
]
314 12.03 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119949
]
315 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:
[
  119949
  26477
]
316 0.59 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  123069
]
317 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:
[
  26477
  119949
]
318 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:
[]
319 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:
[]
320 3.98 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119949
  "seasonplayer_id" => 123069
  "season_id" => 26477
  "alignment" => "%"id":119949%"
]
321 2.19 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119949
  "season_id" => 26477
]
322 0.73 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119949
]
323 1.04 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119949
  "seasonplayer_id" => 123069
  "season_id" => 26477
  "alignment" => "%"id":119949%"
]
324 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:
[
  119949
]
325 0.48 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  26477
  119949
]
326 0.37 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
327 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:
[]
328 3.83 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119949
  "seasonplayer_id" => 123069
  "season_id" => 26477
  "alignment" => "%"id":119949%"
]
329 0.59 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119164
]
330 0.56 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119164
  26477
]
331 0.50 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  122217
]
332 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:
[
  26477
  119164
]
333 0.95 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
334 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:
[]
335 3.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" => 119164
  "seasonplayer_id" => 122217
  "season_id" => 26477
  "alignment" => "%"id":119164%"
]
336 1.34 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119164
  "season_id" => 26477
]
337 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:
[
  26477
  119164
]
338 1.13 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119164
  "seasonplayer_id" => 122217
  "season_id" => 26477
  "alignment" => "%"id":119164%"
]
339 0.45 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119164
]
340 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:
[
  26477
  119164
]
341 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:
[]
342 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:
[]
343 2.59 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119164
  "seasonplayer_id" => 122217
  "season_id" => 26477
  "alignment" => "%"id":119164%"
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Entities Mapping

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