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

Query Metrics

341 Database Queries
17 Different statements
812.54 ms Query time
10 Invalid entities

Queries

Group similar statements

# Time Info
1 37.34 ms
SELECT
        *
        FROM
        customer_device
        WHERE
            :token LIKE CONCAT(token,'%') AND
            `status` = 0
Parameters:
[
  "token" => "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MjcwMDc1MDUsImV4cCI6MTcyNzAxMTEwNSwicm9sZXMiOlsiUk9MRV9DVVNUT01FUiJdLCJ1c2VybmFtZSI6Imp2c2FuemNvbWVzQGdtYWlsLmNvbSJ9.MuyyjyAaBqeY86yjHYZh-7wO0qcNjQfA3a_febY3ATMpY40vbOeAyBDf7_JEGRRm3AJB6fsQM7XDNLQ78CtuIfSLdpT1VcDPQw7KYKglaA9J645FSIApfDpEmYgF2GanUhqfSqXl34X8d0RXYPkepHiBoZ3mu4sivZgKdIbFW1VgxvUlWyuj0EGJEFkfq7OThvWRfrMI2TquOgzNvG4eEoPaXasijt19dYNma1QJIFDLFLVQj2Aazk-Z0Q-11CqFvWBIx6CWLa4sInctRLY7P9QeT9YQkI9KjICeZ6FfHoESkZkUPDU_jwfrJ2QpMmeHOV1vaMBKA6xZQIBGPcXVEt-xGKxUo1ZWakwaqLqKCkmwngs-N0vG3IebgpnJWY8NRGTF1kiKBKHJMx2nsZIQF5G4SuMHyerZcuCtEfoQXooiy-ELO-CpiTEfeLfSOWbhTiKuhXRaSzmEP3Z7TFlHMudyoim40apuTzBlaQM2acxzV7CtZiD-a4-Pbsid13sSdFGlh6jDRG8OYpUB-76iXKmxFAynEBiOzYol8U1XMFTpr2I3Kr82XWT_t9_IZE2oWoJwS6N2M27hekxPAzBFi6--F-IJ0CimR9OHQP0lnlxxF6qlf6fRTJbUrQF8DQ0lzYdPuS44swETxzcHAPqbSiZA1347ZoINlmJAm25KoZI"
]
2 4.93 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:
[
  "jvsanzcomes@gmail.com"
]
3 2.28 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:
[
  26220
]
4 5.81 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? ORDER BY t0.dorsal ASC
Parameters:
[
  27368
]
5 2.05 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:
[
  120422
]
6 2.53 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  120422
  27368
]
7 2.77 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:
[
  123555
]
8 2.99 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
]
9 1.71 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.slug_translation AS slug_translation_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM position_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  6
]
10 2.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:
[
  27368
  120422
]
11 2.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:
[]
12 0.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:
[]
13 4.97 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" => 120422
  "seasonplayer_id" => 123555
  "season_id" => 27368
  "alignment" => "%"id":120422%"
]
14 4.57 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" => 120422
  "season_id" => 27368
]
15 1.26 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at 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:
[
  27368
  120422
]
16 4.22 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" => 120422
  "seasonplayer_id" => 123555
  "season_id" => 27368
  "alignment" => "%"id":120422%"
]
17 2.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:
[
  120422
]
18 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:
[
  27368
  120422
]
19 1.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:
[]
20 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:
[]
21 3.42 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" => 120422
  "seasonplayer_id" => 123555
  "season_id" => 27368
  "alignment" => "%"id":120422%"
]
22 1.07 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:
[
  26196
]
23 1.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:
[
  119956
]
24 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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119956
  27368
]
25 1.77 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:
[
  123076
]
26 0.61 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  2
]
27 1.40 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
]
28 0.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:
[
  27368
  119956
]
29 3.02 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:
[]
30 1.26 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:
[]
31 3.41 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 119956
  "seasonplayer_id" => 123076
  "season_id" => 27368
  "alignment" => "%"id":119956%"
]
32 1.02 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" => 119956
  "season_id" => 27368
]
33 5.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:
[
  27368
  119956
]
34 2.30 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" => 119956
  "seasonplayer_id" => 123076
  "season_id" => 27368
  "alignment" => "%"id":119956%"
]
35 1.26 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at 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:
[
  119956
]
36 0.64 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119956
]
37 0.59 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:
[]
38 0.38 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
39 2.55 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" => 119956
  "seasonplayer_id" => 123076
  "season_id" => 27368
  "alignment" => "%"id":119956%"
]
40 0.50 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  117618
]
41 0.57 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117618
  27368
]
42 0.47 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:
[
  120623
]
43 0.39 ms
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.image AS image_3, t0.updated_at AS updated_at_4, t0.field_position AS field_position_5 FROM position t0 WHERE t0.id = ?
Parameters:
[
  1
]
44 0.42 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
]
45 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:
[
  27368
  117618
]
46 0.38 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
47 0.34 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:
[]
48 2.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" => 117618
  "seasonplayer_id" => 120623
  "season_id" => 27368
  "alignment" => "%"id":117618%"
]
49 0.83 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" => 117618
  "season_id" => 27368
]
50 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:
[
  27368
  117618
]
51 1.31 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" => 117618
  "seasonplayer_id" => 120623
  "season_id" => 27368
  "alignment" => "%"id":117618%"
]
52 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 = ?
Parameters:
[
  117618
]
53 0.77 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117618
]
54 1.15 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:
[]
55 3.14 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:
[]
56 5.72 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 117618
  "seasonplayer_id" => 120623
  "season_id" => 27368
  "alignment" => "%"id":117618%"
]
57 0.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:
[
  117616
]
58 1.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:
[
  117616
  27368
]
59 1.53 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  120621
]
60 3.45 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
]
61 3.35 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
]
62 0.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117616
]
63 3.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:
[]
64 5.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:
[]
65 12.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" => 117616
  "seasonplayer_id" => 120621
  "season_id" => 27368
  "alignment" => "%"id":117616%"
]
66 7.25 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" => 117616
  "season_id" => 27368
]
67 12.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:
[
  27368
  117616
]
68 7.42 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 117616
  "seasonplayer_id" => 120621
  "season_id" => 27368
  "alignment" => "%"id":117616%"
]
69 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.player_id = ?
Parameters:
[
  117616
]
70 3.51 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117616
]
71 3.01 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
72 2.27 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
73 19.36 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" => 117616
  "seasonplayer_id" => 120621
  "season_id" => 27368
  "alignment" => "%"id":117616%"
]
74 3.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:
[
  117581
]
75 2.60 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117581
  27368
]
76 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:
[
  120586
]
77 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:
[
  27368
  117581
]
78 5.53 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.24 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
80 5.54 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" => 117581
  "seasonplayer_id" => 120586
  "season_id" => 27368
  "alignment" => "%"id":117581%"
]
81 1.53 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" => 117581
  "season_id" => 27368
]
82 0.66 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117581
]
83 4.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" => 117581
  "seasonplayer_id" => 120586
  "season_id" => 27368
  "alignment" => "%"id":117581%"
]
84 3.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 = ?
Parameters:
[
  117581
]
85 3.72 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117581
]
86 0.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:
[]
87 6.85 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
88 3.46 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 117581
  "seasonplayer_id" => 120586
  "season_id" => 27368
  "alignment" => "%"id":117581%"
]
89 3.78 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:
[
  118466
]
90 3.64 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118466
  27368
]
91 1.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:
[
  121495
]
92 11.92 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118466
]
93 3.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:
[]
94 7.02 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:
[]
95 3.91 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" => 118466
  "seasonplayer_id" => 121495
  "season_id" => 27368
  "alignment" => "%"id":118466%"
]
96 2.04 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 118466
  "season_id" => 27368
]
97 3.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:
[
  27368
  118466
]
98 2.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" => 118466
  "seasonplayer_id" => 121495
  "season_id" => 27368
  "alignment" => "%"id":118466%"
]
99 0.54 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  118466
]
100 1.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:
[
  27368
  118466
]
101 2.81 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
102 5.95 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
103 3.80 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 118466
  "seasonplayer_id" => 121495
  "season_id" => 27368
  "alignment" => "%"id":118466%"
]
104 3.76 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119210
]
105 3.59 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119210
  27368
]
106 3.80 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:
[
  122263
]
107 4.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:
[
  27368
  119210
]
108 4.15 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:
[]
109 1.11 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:
[]
110 8.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" => 119210
  "seasonplayer_id" => 122263
  "season_id" => 27368
  "alignment" => "%"id":119210%"
]
111 4.46 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" => 119210
  "season_id" => 27368
]
112 5.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:
[
  27368
  119210
]
113 3.30 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" => 119210
  "seasonplayer_id" => 122263
  "season_id" => 27368
  "alignment" => "%"id":119210%"
]
114 4.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119210
]
115 3.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:
[
  27368
  119210
]
116 13.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:
[]
117 6.94 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:
[]
118 5.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" => 119210
  "seasonplayer_id" => 122263
  "season_id" => 27368
  "alignment" => "%"id":119210%"
]
119 6.82 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  118471
]
120 1.85 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119242
]
121 4.11 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at 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:
[
  119242
  27368
]
122 1.84 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  122295
]
123 6.77 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
]
124 4.06 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
]
125 4.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119242
]
126 8.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:
[]
127 3.61 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
128 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" => 119242
  "seasonplayer_id" => 122295
  "season_id" => 27368
  "alignment" => "%"id":119242%"
]
129 6.56 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" => 119242
  "season_id" => 27368
]
130 7.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:
[
  27368
  119242
]
131 2.98 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 119242
  "seasonplayer_id" => 122295
  "season_id" => 27368
  "alignment" => "%"id":119242%"
]
132 4.02 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119242
]
133 4.00 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119242
]
134 2.57 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
135 2.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:
[]
136 2.44 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" => 119242
  "seasonplayer_id" => 122295
  "season_id" => 27368
  "alignment" => "%"id":119242%"
]
137 0.46 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  117580
]
138 0.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117580
  27368
]
139 0.38 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  120585
]
140 0.44 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
]
141 0.34 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
]
142 0.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117580
]
143 0.27 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:
[]
144 0.23 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:
[]
145 1.67 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 117580
  "seasonplayer_id" => 120585
  "season_id" => 27368
  "alignment" => "%"id":117580%"
]
146 0.79 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 117580
  "season_id" => 27368
]
147 0.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117580
]
148 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" => 117580
  "seasonplayer_id" => 120585
  "season_id" => 27368
  "alignment" => "%"id":117580%"
]
149 0.36 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  117580
]
150 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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117580
]
151 0.27 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:
[]
152 0.38 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
153 2.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" => 117580
  "seasonplayer_id" => 120585
  "season_id" => 27368
  "alignment" => "%"id":117580%"
]
154 0.44 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:
[
  117620
]
155 0.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117620
  27368
]
156 0.39 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:
[
  120625
]
157 0.70 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117620
]
158 0.26 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
159 0.27 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
160 1.63 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" => 117620
  "seasonplayer_id" => 120625
  "season_id" => 27368
  "alignment" => "%"id":117620%"
]
161 0.82 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" => 117620
  "season_id" => 27368
]
162 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:
[
  27368
  117620
]
163 0.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" => 117620
  "seasonplayer_id" => 120625
  "season_id" => 27368
  "alignment" => "%"id":117620%"
]
164 0.36 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  117620
]
165 0.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:
[
  27368
  117620
]
166 0.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:
[]
167 0.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:
[]
168 1.77 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 117620
  "seasonplayer_id" => 120625
  "season_id" => 27368
  "alignment" => "%"id":117620%"
]
169 0.44 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:
[
  118469
]
170 0.42 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  118469
  27368
]
171 0.42 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:
[
  121498
]
172 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:
[
  27368
  118469
]
173 0.30 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
174 0.30 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
175 1.67 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 118469
  "seasonplayer_id" => 121498
  "season_id" => 27368
  "alignment" => "%"id":118469%"
]
176 0.77 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 118469
  "season_id" => 27368
]
177 0.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:
[
  27368
  118469
]
178 0.86 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" => 118469
  "seasonplayer_id" => 121498
  "season_id" => 27368
  "alignment" => "%"id":118469%"
]
179 0.40 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  118469
]
180 0.35 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118469
]
181 0.26 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
182 0.24 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
183 1.61 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 118469
  "seasonplayer_id" => 121498
  "season_id" => 27368
  "alignment" => "%"id":118469%"
]
184 0.60 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:
[
  117619
]
185 0.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117619
  27368
]
186 0.44 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:
[
  120624
]
187 0.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:
[
  27368
  117619
]
188 0.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:
[]
189 0.23 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:
[]
190 1.79 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" => 117619
  "seasonplayer_id" => 120624
  "season_id" => 27368
  "alignment" => "%"id":117619%"
]
191 0.60 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" => 117619
  "season_id" => 27368
]
192 0.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:
[
  27368
  117619
]
193 0.82 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" => 117619
  "seasonplayer_id" => 120624
  "season_id" => 27368
  "alignment" => "%"id":117619%"
]
194 0.36 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  117619
]
195 0.35 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117619
]
196 0.26 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
197 0.23 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:
[]
198 1.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" => 117619
  "seasonplayer_id" => 120624
  "season_id" => 27368
  "alignment" => "%"id":117619%"
]
199 0.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:
[
  118468
]
200 0.43 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:
[
  117621
]
201 0.39 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117621
  27368
]
202 0.36 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:
[
  120626
]
203 0.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:
[
  27368
  117621
]
204 0.30 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
205 0.28 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:
[]
206 1.77 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 117621
  "seasonplayer_id" => 120626
  "season_id" => 27368
  "alignment" => "%"id":117621%"
]
207 0.66 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" => 117621
  "season_id" => 27368
]
208 0.42 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117621
]
209 0.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" => 117621
  "seasonplayer_id" => 120626
  "season_id" => 27368
  "alignment" => "%"id":117621%"
]
210 0.39 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  117621
]
211 0.39 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117621
]
212 0.30 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
213 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:
[]
214 1.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" => 117621
  "seasonplayer_id" => 120626
  "season_id" => 27368
  "alignment" => "%"id":117621%"
]
215 0.46 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  117617
]
216 0.39 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  117617
  27368
]
217 0.36 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:
[
  120622
]
218 0.41 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117617
]
219 0.33 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:
[]
220 0.27 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
221 2.08 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" => 117617
  "seasonplayer_id" => 120622
  "season_id" => 27368
  "alignment" => "%"id":117617%"
]
222 0.82 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" => 117617
  "season_id" => 27368
]
223 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:
[
  27368
  117617
]
224 1.03 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 117617
  "seasonplayer_id" => 120622
  "season_id" => 27368
  "alignment" => "%"id":117617%"
]
225 0.43 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  117617
]
226 0.47 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  117617
]
227 0.34 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:
[]
228 0.34 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:
[]
229 2.08 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" => 117617
  "seasonplayer_id" => 120622
  "season_id" => 27368
  "alignment" => "%"id":117617%"
]
230 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:
[
  118467
]
231 0.53 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:
[
  119211
]
232 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:
[
  119211
  27368
]
233 0.51 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  122264
]
234 0.40 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
]
235 0.47 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
]
236 0.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:
[
  27368
  119211
]
237 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:
[]
238 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:
[]
239 2.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" => 119211
  "seasonplayer_id" => 122264
  "season_id" => 27368
  "alignment" => "%"id":119211%"
]
240 0.82 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" => 119211
  "season_id" => 27368
]
241 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:
[
  27368
  119211
]
242 1.38 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" => 119211
  "seasonplayer_id" => 122264
  "season_id" => 27368
  "alignment" => "%"id":119211%"
]
243 0.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.player_id = ?
Parameters:
[
  119211
]
244 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:
[
  27368
  119211
]
245 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:
[]
246 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:
[]
247 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" => 119211
  "seasonplayer_id" => 122264
  "season_id" => 27368
  "alignment" => "%"id":119211%"
]
248 0.98 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:
[
  118465
]
249 1.69 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:
[
  118472
]
250 1.11 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at 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:
[
  118472
  27368
]
251 0.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:
[
  121501
]
252 1.68 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118472
]
253 3.29 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
254 6.01 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:
[]
255 6.28 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" => 118472
  "seasonplayer_id" => 121501
  "season_id" => 27368
  "alignment" => "%"id":118472%"
]
256 4.38 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 118472
  "season_id" => 27368
]
257 3.68 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118472
]
258 6.92 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" => 118472
  "seasonplayer_id" => 121501
  "season_id" => 27368
  "alignment" => "%"id":118472%"
]
259 2.80 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  118472
]
260 3.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118472
]
261 2.59 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:
[]
262 1.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:
[]
263 8.91 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" => 118472
  "seasonplayer_id" => 121501
  "season_id" => 27368
  "alignment" => "%"id":118472%"
]
264 1.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:
[
  119212
]
265 4.35 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:
[
  118470
]
266 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:
[
  118470
  27368
]
267 3.63 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:
[
  121499
]
268 3.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:
[
  27368
  118470
]
269 3.56 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:
[]
270 3.63 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
271 2.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" => 118470
  "seasonplayer_id" => 121499
  "season_id" => 27368
  "alignment" => "%"id":118470%"
]
272 5.38 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 118470
  "season_id" => 27368
]
273 3.78 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118470
]
274 7.15 ms
SELECT
        SUM(IF(cp.player_id IS NOT NULL,1,0)) AS `convocatory`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `titularity`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 1,1,0)) AS `isTitular`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0,1,0)) AS `intitularity`,
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS countPlayed,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `convocatoriaAlignment`,
        SUM(IF(g.id IS NOT NULL,g.time_match,0)) AS time_match,
        COUNT(*) AS convocatoriaTotal
        FROM
        game g
        LEFT JOIN convocatoria c ON g.id = c.game_id
        LEFT JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id1 AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id1" => 118470
  "seasonplayer_id" => 121499
  "season_id" => 27368
  "alignment" => "%"id":118470%"
]
275 2.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 = ?
Parameters:
[
  118470
]
276 0.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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  118470
]
277 2.60 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
278 2.66 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:
[]
279 4.53 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 118470
  "seasonplayer_id" => 121499
  "season_id" => 27368
  "alignment" => "%"id":118470%"
]
280 2.91 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:
[
  119241
]
281 2.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:
[
  119241
  27368
]
282 2.55 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  122294
]
283 2.81 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119241
]
284 1.73 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
285 0.63 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
286 2.60 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" => 119241
  "seasonplayer_id" => 122294
  "season_id" => 27368
  "alignment" => "%"id":119241%"
]
287 1.52 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119241
  "season_id" => 27368
]
288 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.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119241
]
289 1.54 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" => 119241
  "seasonplayer_id" => 122294
  "season_id" => 27368
  "alignment" => "%"id":119241%"
]
290 2.14 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119241
]
291 0.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:
[
  27368
  119241
]
292 3.65 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:
[]
293 1.94 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:
[]
294 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" => 119241
  "seasonplayer_id" => 122294
  "season_id" => 27368
  "alignment" => "%"id":119241%"
]
295 3.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:
[
  119244
]
296 3.58 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119255
]
297 3.44 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119255
  27368
]
298 2.03 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:
[
  122308
]
299 3.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:
[
  27368
  119255
]
300 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:
[]
301 2.22 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
302 8.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" => 119255
  "seasonplayer_id" => 122308
  "season_id" => 27368
  "alignment" => "%"id":119255%"
]
303 5.00 ms
SELECT 
            ta.id,
            SUM(IF(tap.player_id IS NULL,0,1)) AS trainingAsist,
            COUNT(ta.id) AS trainingAsistTotal
        FROM training_asist AS ta
        LEFT JOIN training_asist_player AS tap ON ta.id = tap.training_asist_id AND tap.player_id = :player_id 
        WHERE ta.season_id = :season_id
        GROUP BY ta.season_id;
Parameters:
[
  "player_id" => 119255
  "season_id" => 27368
]
304 1.20 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119255
]
305 12.63 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" => 119255
  "seasonplayer_id" => 122308
  "season_id" => 27368
  "alignment" => "%"id":119255%"
]
306 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.player_id = ?
Parameters:
[
  119255
]
307 2.86 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119255
]
308 0.65 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:
[]
309 0.34 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:
[]
310 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" => 119255
  "seasonplayer_id" => 122308
  "season_id" => 27368
  "alignment" => "%"id":119255%"
]
311 0.60 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:
[
  119287
]
312 0.56 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  118535
]
313 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:
[
  118535
  27368
]
314 0.51 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  121564
]
315 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:
[
  27368
  118535
]
316 0.35 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:
[]
317 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:
[]
318 2.01 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" => 118535
  "seasonplayer_id" => 121564
  "season_id" => 27368
  "alignment" => "%"id":118535%"
]
319 0.74 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" => 118535
  "season_id" => 27368
]
320 0.69 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at 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:
[
  27368
  118535
]
321 0.95 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" => 118535
  "seasonplayer_id" => 121564
  "season_id" => 27368
  "alignment" => "%"id":118535%"
]
322 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.player_id = ?
Parameters:
[
  118535
]
323 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:
[
  27368
  118535
]
324 0.39 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
325 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:
[]
326 3.00 ms
SELECT 
        SUM(IF(gps.id IS NOT NULL,gps.minutes,0)) AS `minutes`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.minutes,0)) AS `minutes_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.minutes,0)) AS `minutes_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.minutes,0)) AS `minutes_3`,
        SUM(IF(gps.id IS NOT NULL,gps.red_cards,0)) AS `redCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.red_cards,0)) AS `redCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.red_cards,0)) AS `redCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.red_cards,0)) AS `redCards_3`,
        SUM(IF(gps.id IS NOT NULL,gps.yellow_cards,0)) AS `yellowCards`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.yellow_cards,0)) AS `yellowCards_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.yellow_cards,0)) AS `yellowCards_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.yellow_cards,0)) AS `yellowCards_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0,1,0)) AS games,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 1,1,0)) AS `games_1`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 2,1,0)) AS `games_2`,SUM(IF(gps.id IS NOT NULL AND gps.minutes > 0 AND g.competition_id = 3,1,0)) AS `games_3`,
        SUM(IF(gps.id IS NOT NULL,gps.kilometers_traveled,0)) AS `kilometersTraveled`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.kilometers_traveled,0)) AS `kilometersTraveled_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.kilometers_traveled,0)) AS `kilometersTraveled_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.kilometers_traveled,0)) AS `kilometersTraveled_3`,
        SUM(IF(gps.id IS NOT NULL,gps.shots_on_goal,0)) AS `shotsOnGoal`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.shots_on_goal,0)) AS `shotsOnGoal_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.shots_on_goal,0)) AS `shotsOnGoal_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.shots_on_goal,0)) AS `shotsOnGoal_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stolen_balls,0)) AS `stolenBalls`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stolen_balls,0)) AS `stolenBalls_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stolen_balls,0)) AS `stolenBalls_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stolen_balls,0)) AS `stolenBalls_3`,
        SUM(IF(gps.id IS NOT NULL,gps.penalties_committed,0)) AS `penaltiesCommitted`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.penalties_committed,0)) AS `penaltiesCommitted_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.penalties_committed,0)) AS `penaltiesCommitted_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.penalties_committed,0)) AS `penaltiesCommitted_3`,
        SUM(IF(gps.id IS NOT NULL,gps.forced_penalties,0)) AS `forcedPenalties`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.forced_penalties,0)) AS `forcedPenalties_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.forced_penalties,0)) AS `forcedPenalties_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.forced_penalties,0)) AS `forcedPenalties_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goals,0)) AS `goals`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goals,0)) AS `goals_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goals,0)) AS `goals_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goals,0)) AS `goals_3`,
        SUM(IF(gps.id IS NOT NULL,gps.goal_assistances,0)) AS `goalAssistances`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.goal_assistances,0)) AS `goalAssistances_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.goal_assistances,0)) AS `goalAssistances_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.goal_assistances,0)) AS `goalAssistances_3`,
        SUM(IF(gps.id IS NOT NULL,gps.is_titular,0)) AS `isTitular`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.is_titular,0)) AS `isTitular_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.is_titular,0)) AS `isTitular_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.is_titular,0)) AS `isTitular_3`,
        SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 1,1,0)) AS `intitularity_1`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 2,1,0)) AS `intitularity_2`,SUM(IF(gps.id IS NOT NULL AND gps.is_titular = 0 AND g.competition_id = 3,1,0)) AS `intitularity_3`,
        SUM(IF(gps.id IS NOT NULL,gps.stops_made,0)) AS `stopsMade`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 1,gps.stops_made,0)) AS `stopsMade_1`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 2,gps.stops_made,0)) AS `stopsMade_2`,SUM(IF(gps.id IS NOT NULL AND g.competition_id = 3,gps.stops_made,0)) AS `stopsMade_3`,
        SUM(IF(cp.justification_type_id = 1, 1,0))  AS `justificationTypeTotal_1`,SUM(IF(cp.justification_type_id = 2, 1,0))  AS `justificationTypeTotal_2`,SUM(IF(cp.justification_type_id = 3, 1,0))  AS `justificationTypeTotal_3`,SUM(IF(cp.justification_type_id = 4, 1,0))  AS `justificationTypeTotal_4`,SUM(IF(cp.justification_type_id = 5, 1,0))  AS `justificationTypeTotal_5`,SUM(IF(cp.justification_type_id = 6, 1,0))  AS `justificationTypeTotal_6`,SUM(IF(cp.justification_type_id = 7, 1,0))  AS `justificationTypeTotal_7`,SUM(IF(cp.justification_type_id = 8, 1,0))  AS `justificationTypeTotal_8`,SUM(IF(cp.justification_type_id = 9, 1,0))  AS `justificationTypeTotal_9`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 1,1,0)) AS `justificationType_1_1`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 1,1,0)) AS `justificationType_2_1`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 1,1,0)) AS `justificationType_3_1`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 1,1,0)) AS `justificationType_4_1`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 1,1,0)) AS `justificationType_5_1`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 1,1,0)) AS `justificationType_6_1`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 1,1,0)) AS `justificationType_7_1`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 1,1,0)) AS `justificationType_8_1`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 1,1,0)) AS `justificationType_9_1`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 2,1,0)) AS `justificationType_1_2`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 2,1,0)) AS `justificationType_2_2`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 2,1,0)) AS `justificationType_3_2`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 2,1,0)) AS `justificationType_4_2`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 2,1,0)) AS `justificationType_5_2`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 2,1,0)) AS `justificationType_6_2`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 2,1,0)) AS `justificationType_7_2`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 2,1,0)) AS `justificationType_8_2`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 2,1,0)) AS `justificationType_9_2`,SUM(IF(cp.justification_type_id = 1 AND g.competition_id = 3,1,0)) AS `justificationType_1_3`,SUM(IF(cp.justification_type_id = 2 AND g.competition_id = 3,1,0)) AS `justificationType_2_3`,SUM(IF(cp.justification_type_id = 3 AND g.competition_id = 3,1,0)) AS `justificationType_3_3`,SUM(IF(cp.justification_type_id = 4 AND g.competition_id = 3,1,0)) AS `justificationType_4_3`,SUM(IF(cp.justification_type_id = 5 AND g.competition_id = 3,1,0)) AS `justificationType_5_3`,SUM(IF(cp.justification_type_id = 6 AND g.competition_id = 3,1,0)) AS `justificationType_6_3`,SUM(IF(cp.justification_type_id = 7 AND g.competition_id = 3,1,0)) AS `justificationType_7_3`,SUM(IF(cp.justification_type_id = 8 AND g.competition_id = 3,1,0)) AS `justificationType_8_3`,SUM(IF(cp.justification_type_id = 9 AND g.competition_id = 3,1,0)) AS `justificationType_9_3`,
        SUM(IF(ga.id IS NOT NULL,1,0)) AS `gameAlignment`,
        SUM(IF(cp.is_active = 1,1,0)) AS convocatoriaTotal
        FROM
        game g
        INNER JOIN convocatoria c ON g.id = c.game_id
        INNER JOIN convocatoria_player cp ON c.id = cp.convocatoria_id AND cp.player_id = :player_id AND cp.is_active = 1
        LEFT JOIN game_player_statistics gps ON g.id = gps.game_id AND gps.seasonplayer_id = :seasonplayer_id  
        LEFT JOIN game_alignment ga ON ga.id = g.alignment_id AND ga.alignment LIKE :alignment
        WHERE
        g.season_id = :season_id
        AND g.deleted_at IS NULL
Parameters:
[
  "player_id" => 118535
  "seasonplayer_id" => 121564
  "season_id" => 27368
  "alignment" => "%"id":118535%"
]
327 0.68 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.lastname AS lastname_3, t0.age AS age_4, t0.weight AS weight_5, t0.height AS height_6, t0.shoes AS shoes_7, t0.image AS image_8, t0.updated_at AS updated_at_9, t0.skillful_leg AS skillful_leg_10, t0.is_active AS is_active_11, t0.birth_date AS birth_date_12, t0.phone AS phone_13, t0.email AS email_14, t0.number_document AS number_document_15, t0.health_card AS health_card_16, t0.date_of_birth AS date_of_birth_17, t0.medical_review_date AS medical_review_date_18, t0.last_club AS last_club_19, t0.deleted_at AS deleted_at_20, t0.position_id AS position_id_21, t0.secondary_position_id AS secondary_position_id_22, t0.country_id AS country_id_23 FROM player t0 WHERE t0.id = ?
Parameters:
[
  119243
]
328 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.player_id = ? AND t0.season_id = ? LIMIT 1
Parameters:
[
  119243
  27368
]
329 0.76 ms
SELECT t0.id AS id_1, t0.weight AS weight_2, t0.date AS date_3, t0.time AS time_4, t0.season_player_id AS season_player_id_5 FROM player_weight t0 WHERE t0.season_player_id = ? ORDER BY t0.date ASC
Parameters:
[
  122296
]
330 0.67 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119243
]
331 0.38 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
332 0.38 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4 FROM competition t0
Parameters:
[]
333 3.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" => 119243
  "seasonplayer_id" => 122296
  "season_id" => 27368
  "alignment" => "%"id":119243%"
]
334 1.20 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" => 119243
  "season_id" => 27368
]
335 0.64 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.season_id = ? AND t0.player_id = ? LIMIT 1
Parameters:
[
  27368
  119243
]
336 1.29 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" => 119243
  "seasonplayer_id" => 122296
  "season_id" => 27368
  "alignment" => "%"id":119243%"
]
337 0.50 ms
SELECT t0.id AS id_1, t0.games AS games_2, t0.goals AS goals_3, t0.yellow_card AS yellow_card_4, t0.red_card AS red_card_5, t0.dorsal AS dorsal_6, t0.is_active AS is_active_7, t0.deleted_at AS deleted_at_8, t0.season_id AS season_id_9, t0.player_id AS player_id_10 FROM season_player t0 WHERE t0.player_id = ?
Parameters:
[
  119243
]
338 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:
[
  27368
  119243
]
339 0.39 ms
SELECT t0.id AS id_1, t0.icon AS icon_2, t0.created_at AS created_at_3, t0.nro_order AS nro_order_4, t0.show_training AS show_training_5, t0.show_announcement AS show_announcement_6 FROM justification_type t0
Parameters:
[]
340 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:
[]
341 2.57 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" => 119243
  "seasonplayer_id" => 122296
  "season_id" => 27368
  "alignment" => "%"id":119243%"
]

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.
  • The association App\Entity\SeasonPlayer#captainInGames refers to the owning side field App\Entity\GameAlignment#seasonplayer 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\GameAlignment
  • The association App\Entity\GameAlignment#captain refers to the inverse side field App\Entity\SeasonPlayer#GameAlignment which does not exist.
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.