SELECT 
  cscart_products_categories.product_id, 
  GROUP_CONCAT(
    IF(
      cscart_products_categories.link_type = "M", 
      CONCAT(
        cscart_products_categories.category_id, 
        "M"
      ), 
      cscart_products_categories.category_id
    )
  ) AS category_ids, 
  product_position_source.position AS position 
FROM 
  cscart_products_categories 
  INNER JOIN cscart_categories ON cscart_categories.category_id = cscart_products_categories.category_id 
  AND cscart_categories.storefront_id IN (0, 1) 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  LEFT JOIN cscart_products_categories AS product_position_source ON cscart_products_categories.product_id = product_position_source.product_id 
  AND product_position_source.category_id = 7188 
WHERE 
  cscart_products_categories.product_id IN (
    92067, 92068, 92069, 92070, 92071, 92072, 
    92073, 92083, 92084, 92085, 92086, 
    92087, 92088, 92089, 84018, 84019, 
    84020, 84021, 83974, 83975, 83976, 
    83977, 92066, 92082, 90073, 89179, 
    86383, 83095, 84101, 93039, 93040, 
    93041, 93042, 93043, 93044, 93045, 
    93046, 94718, 94722, 94727, 94731, 
    94735, 94739, 94743, 94747, 97025, 
    97842, 97846, 97851, 97855, 97859, 
    97863, 97867, 97871, 97911, 97912, 
    97913, 97914, 97943, 97944, 97945, 
    97946, 97968, 98107, 98108, 98109, 
    98110, 98111, 98112, 98113, 98114, 
    98351, 98352, 98353, 98354, 98355, 
    98356, 98357, 98358, 98359, 98360, 
    98361, 98362, 98363, 98364, 98365, 
    98366, 98685, 100145, 100891
  ) 
GROUP BY 
  cscart_products_categories.product_id

Query time 0.01661

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "81.29"
    },
    "grouping_operation": {
      "using_filesort": false,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_products_categories",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "link_type",
              "pt"
            ],
            "key": "pt",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 90,
            "rows_produced_per_join": 90,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "9.29",
              "eval_cost": "9.00",
              "prefix_cost": "18.29",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "product_id",
              "category_id",
              "link_type"
            ],
            "attached_condition": "(`nuie_scalesta_net`.`cscart_products_categories`.`product_id` in (92067,92068,92069,92070,92071,92072,92073,92083,92084,92085,92086,92087,92088,92089,84018,84019,84020,84021,83974,83975,83976,83977,92066,92082,90073,89179,86383,83095,84101,93039,93040,93041,93042,93043,93044,93045,93046,94718,94722,94727,94731,94735,94739,94743,94747,97025,97842,97846,97851,97855,97859,97863,97867,97871,97911,97912,97913,97914,97943,97944,97945,97946,97968,98107,98108,98109,98110,98111,98112,98113,98114,98351,98352,98353,98354,98355,98356,98357,98358,98359,98360,98361,98362,98363,98364,98365,98366,98685,100145,100891))"
          }
        },
        {
          "table": {
            "table_name": "product_position_source",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "pt"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "product_id"
            ],
            "key_length": "6",
            "ref": [
              "const",
              "nuie_scalesta_net.cscart_products_categories.product_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 90,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "22.50",
              "eval_cost": "9.00",
              "prefix_cost": "49.79",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "product_id",
              "category_id",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "p_category_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id"
            ],
            "key_length": "3",
            "ref": [
              "nuie_scalesta_net.cscart_products_categories.category_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "5.00",
            "cost_info": {
              "read_cost": "22.50",
              "eval_cost": "0.45",
              "prefix_cost": "81.29",
              "data_read_per_join": "11K"
            },
            "used_columns": [
              "category_id",
              "usergroup_ids",
              "status",
              "storefront_id"
            ],
            "attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` in ('A','H')))"
          }
        }
      ]
    }
  }
}

Result

product_id category_ids position
83095 7188M 0
83974 7188M 0
83975 7188M 0
83976 7188M 0
83977 7188M 0
84018 7188M 0
84019 7188M 0
84020 7188M 0
84021 7188M 0
84101 7188M 0
86383 7188M 0
89179 7188M 0
90073 7188M 0
92066 7188M 0
92067 7188M 0
92068 7188M 0
92069 7188M 0
92070 7188M 0
92071 7188M 0
92072 7188M 0
92073 7188M 0
92082 7188M 0
92083 7188M 0
92084 7188M 0
92085 7188M 0
92086 7188M 0
92087 7188M 0
92088 7188M 0
92089 7188M 0
93039 7188M 0
93040 7188M 0
93041 7188M 0
93042 7188M 0
93043 7188M 0
93044 7188M 0
93045 7188M 0
93046 7188M 0
94718 7188M 0
94722 7188M 0
94727 7188M 0
94731 7188M 0
94735 7188M 0
94739 7188M 0
94743 7188M 0
94747 7188M 0
97025 7188M 0
97842 7188M 0
97846 7188M 0
97851 7188M 0
97855 7188M 0
97859 7188M 0
97863 7188M 0
97867 7188M 0
97871 7188M 0
97911 7188M 0
97912 7188M 0
97913 7188M 0
97914 7188M 0
97943 7188M 0
97944 7188M 0
97945 7188M 0
97946 7188M 0
97968 7188M 0
98107 7188M 0
98108 7188M 0
98109 7188M 0
98110 7188M 0
98111 7188M 0
98112 7188M 0
98113 7188M 0
98114 7188M 0
98351 7188M 0
98352 7188M 0
98353 7188M 0
98354 7188M 0
98355 7188M 0
98356 7188M 0
98357 7188M 0
98358 7188M 0
98359 7188M 0
98360 7188M 0
98361 7188M 0
98362 7188M 0
98363 7188M 0
98364 7188M 0
98365 7188M 0
98366 7188M 0
98685 7188M 0
100145 7188M 0
100891 7188M 0