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 = 11 
WHERE 
  cscart_products_categories.product_id IN (
    1735, 1602, 1601, 1692, 1696, 1682, 1743, 
    1045, 1046, 1187, 1556, 1555, 1435, 
    1554, 1577, 1194, 1766, 368, 1253, 1553, 
    1371, 1372, 1373, 1374, 1219, 1220, 
    1440, 1441, 1681, 1680, 1800, 1902, 
    1804, 1803, 1221, 1224, 1762, 408, 39, 
    1798, 1797, 1445
  ) 
GROUP BY 
  cscart_products_categories.product_id

Query time 0.00178

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_products_categories",
      "access_type": "range",
      "possible_keys": ["PRIMARY", "pt"],
      "key": "pt",
      "key_length": "3",
      "used_key_parts": ["product_id"],
      "rows": 42,
      "filtered": 100,
      "index_condition": "cscart_products_categories.product_id in (1735,1602,1601,1692,1696,1682,1743,1045,1046,1187,1556,1555,1435,1554,1577,1194,1766,368,1253,1553,1371,1372,1373,1374,1219,1220,1440,1441,1681,1680,1800,1902,1804,1803,1221,1224,1762,408,39,1798,1797,1445)"
    },
    "table": {
      "table_name": "product_position_source",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY", "pt"],
      "key": "PRIMARY",
      "key_length": "6",
      "used_key_parts": ["category_id", "product_id"],
      "ref": ["const", "bacpvdev_db.cscart_products_categories.product_id"],
      "rows": 1,
      "filtered": 100
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY", "c_status", "p_category_id"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["category_id"],
      "ref": ["bacpvdev_db.cscart_products_categories.category_id"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "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')"
    }
  }
}

Result

product_id category_ids position
39 15M
368 35M
408 24M
1045 35M
1046 35M
1187 35M
1194 35M
1219 24M
1220 24M
1221 24M
1224 24M
1253 35M
1371 12M
1372 12M
1373 12M
1374 12M
1435 11M 0
1440 11M 0
1441 11M 0
1445 11M 0
1553 13M
1554 13M
1555 13M
1556 13M
1577 35M
1601 13M
1602 13M
1680 25M
1681 25M
1682 13M
1692 13M
1696 13M
1735 13M
1743 13M
1762 24M
1766 24M
1797 15M
1798 15M
1800 24M
1803 24M
1804 24M
1902 25M