SELECT 
  v.variant_id, 
  v.product_id, 
  vd.variant, 
  vf.position, 
  vf.color 
FROM 
  cscart_product_features_values v 
  LEFT JOIN cscart_product_feature_variant_descriptions vd ON v.variant_id = vd.variant_id 
  AND vd.lang_code = 'en' 
  LEFT JOIN cscart_product_feature_variants vf ON v.variant_id = vf.variant_id 
WHERE 
  1 
  AND v.feature_id = 1196 
  AND v.product_id IN (
    '35061', 
    '35060', 
    '35059', 
    '35058', 
    '35057', 
    '35056', 
    '35055', 
    '35054', 
    '35053', 
    '35052', 
    '35051', 
    '35050', 
    '35049', 
    '35048', 
    '35047', 
    '35046', 
    '35045', 
    '35044', 
    '35043', 
    '35042', 
    '35041', 
    '35040', 
    '35039', 
    '35038', 
    '35037', 
    '35036', 
    '35035', 
    '35034', 
    '35033', 
    '35032', 
    '35031', 
    '35030', 
    '34936', 
    '35102', 
    '35103', 
    '35093', 
    '35101', 
    '35100', 
    '35099', 
    '35098', 
    '35097', 
    '35096', 
    '35095', 
    '35094', 
    '35084', 
    '35092', 
    '35091', 
    '35090', 
    '35089', 
    '35088', 
    '35087', 
    '35086', 
    '35085', 
    '35075', 
    '35083', 
    '35082', 
    '35081', 
    '35080', 
    '35079', 
    '35078', 
    '35077', 
    '35076', 
    '35066', 
    '35074', 
    '35073', 
    '35072', 
    '35071', 
    '35070', 
    '35069', 
    '35068', 
    '35067', 
    '35029', 
    '35065', 
    '35064', 
    '35063', 
    '35062', 
    '35028', 
    '35027', 
    '35026', 
    '35025', 
    '35024', 
    '35023', 
    '35022', 
    '35021', 
    '35020', 
    '35019', 
    '35018', 
    '35017', 
    '35016', 
    '35015', 
    '35014', 
    '35013', 
    '35012', 
    '35011', 
    '35010', 
    '35009', 
    '35008', 
    '35007', 
    '35006', 
    '35005', 
    '35004', 
    '35003', 
    '35002', 
    '35001', 
    '35000', 
    '34999', 
    '34998', 
    '34997', 
    '34996', 
    '34995', 
    '34994', 
    '34993', 
    '34992', 
    '34991', 
    '34990', 
    '34989', 
    '34988', 
    '34987', 
    '34986', 
    '34985', 
    '34984', 
    '34983', 
    '34982', 
    '34981', 
    '34980', 
    '34979', 
    '34978', 
    '34977', 
    '34976', 
    '34975', 
    '34974', 
    '34973', 
    '34972', 
    '34971', 
    '34970', 
    '34969', 
    '34968', 
    '34967', 
    '34966', 
    '34965', 
    '34964', 
    '34963', 
    '34962', 
    '34961', 
    '34960', 
    '34959', 
    '34958', 
    '34957', 
    '34956', 
    '34955', 
    '34954', 
    '34953', 
    '34952', 
    '34951', 
    '34950', 
    '34949', 
    '34948', 
    '34947', 
    '34946', 
    '34945', 
    '34944', 
    '34943', 
    '34942', 
    '34941', 
    '34940', 
    '34939', 
    '34938', 
    '34937'
  )

Query time 0.00654

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "35.81"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "v",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "product_id"
          ],
          "key_length": "6",
          "rows_examined_per_scan": 170,
          "rows_produced_per_join": 3,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "3.26",
            "eval_cost": "0.34",
            "prefix_cost": "33.46",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id"
          ],
          "attached_condition": "((`cscartdb`.`v`.`feature_id` = 1196) and (`cscartdb`.`v`.`product_id` in ('35061','35060','35059','35058','35057','35056','35055','35054','35053','35052','35051','35050','35049','35048','35047','35046','35045','35044','35043','35042','35041','35040','35039','35038','35037','35036','35035','35034','35033','35032','35031','35030','34936','35102','35103','35093','35101','35100','35099','35098','35097','35096','35095','35094','35084','35092','35091','35090','35089','35088','35087','35086','35085','35075','35083','35082','35081','35080','35079','35078','35077','35076','35066','35074','35073','35072','35071','35070','35069','35068','35067','35029','35065','35064','35063','35062','35028','35027','35026','35025','35024','35023','35022','35021','35020','35019','35018','35017','35016','35015','35014','35013','35012','35011','35010','35009','35008','35007','35006','35005','35004','35003','35002','35001','35000','34999','34998','34997','34996','34995','34994','34993','34992','34991','34990','34989','34988','34987','34986','34985','34984','34983','34982','34981','34980','34979','34978','34977','34976','34975','34974','34973','34972','34971','34970','34969','34968','34967','34966','34965','34964','34963','34962','34961','34960','34959','34958','34957','34956','34955','34954','34953','34952','34951','34950','34949','34948','34947','34946','34945','34944','34943','34942','34941','34940','34939','34938','34937')))"
        }
      },
      {
        "table": {
          "table_name": "vd",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "cscartdb.v.variant_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 3,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.84",
            "eval_cost": "0.34",
            "prefix_cost": "34.63",
            "data_read_per_join": "10K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      },
      {
        "table": {
          "table_name": "vf",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "ref": [
            "cscartdb.v.variant_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 3,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.84",
            "eval_cost": "0.34",
            "prefix_cost": "35.81",
            "data_read_per_join": "3K"
          },
          "used_columns": [
            "variant_id",
            "color",
            "position"
          ]
        }
      }
    ]
  }
}

Result

variant_id product_id variant position color
4564 34936 Oragsm belt/XS 0 #000000
4565 34937 Orgasm belt/S 1 #000000
4566 34938 Orgasm belt/M 2 #000000
4567 34939 Orgasm belt/L 3 #000000
4568 34940 Orgasm belt/XL 4 #000000
4569 34941 Orgasm belt/2XL 5 #000000
4570 34942 Orgasm belt/3XL 6 #000000
4571 34943 Belt+Bra/XS 7 #000000
4572 34944 Belt+Bra/S 8 #000000
4573 34945 Belt+Bra/M 9 #000000
4574 34946 Belt+Bra/L 10 #000000
4575 34947 Belt+Bra/XL 11 #000000
4576 34948 Belt+Bra/2XL 12 #000000
4577 34949 Belt+Bra/3XL 13 #000000
4578 34950 Belt+Cuffs/XS 14 #000000
4579 34951 Belt+Cuffs/S 15 #000000
4580 34952 Belt+Cuffs/M 16 #000000
4581 34953 Belt+Cuffs/L 17 #000000
4582 34954 Belt+Cuffs/XL 18 #000000
4583 34955 Belt+Cuffs/2XL 19 #000000
4584 34956 Belt+Cuffs/3XL 20 #000000
4585 34957 Full set/XS 21 #000000
4586 34958 Full set/S 22 #000000
4587 34959 Full set/M 23 #000000
4588 34960 Full set/L 24 #000000
4589 34961 Full set/XL 25 #000000
4590 34962 Full set/2XL 26 #000000
4591 34963 Full set/3XL 27 #000000
4564 34964 Oragsm belt/XS 0 #000000
4565 34965 Orgasm belt/S 1 #000000
4566 34966 Orgasm belt/M 2 #000000
4567 34967 Orgasm belt/L 3 #000000
4568 34968 Orgasm belt/XL 4 #000000
4569 34969 Orgasm belt/2XL 5 #000000
4570 34970 Orgasm belt/3XL 6 #000000
4571 34971 Belt+Bra/XS 7 #000000
4572 34972 Belt+Bra/S 8 #000000
4573 34973 Belt+Bra/M 9 #000000
4574 34974 Belt+Bra/L 10 #000000
4575 34975 Belt+Bra/XL 11 #000000
4576 34976 Belt+Bra/2XL 12 #000000
4577 34977 Belt+Bra/3XL 13 #000000
4578 34978 Belt+Cuffs/XS 14 #000000
4579 34979 Belt+Cuffs/S 15 #000000
4580 34980 Belt+Cuffs/M 16 #000000
4581 34981 Belt+Cuffs/L 17 #000000
4582 34982 Belt+Cuffs/XL 18 #000000
4583 34983 Belt+Cuffs/2XL 19 #000000
4584 34984 Belt+Cuffs/3XL 20 #000000
4585 34985 Full set/XS 21 #000000
4586 34986 Full set/S 22 #000000
4587 34987 Full set/M 23 #000000
4588 34988 Full set/L 24 #000000
4589 34989 Full set/XL 25 #000000
4590 34990 Full set/2XL 26 #000000
4591 34991 Full set/3XL 27 #000000
4564 34992 Oragsm belt/XS 0 #000000
4565 34993 Orgasm belt/S 1 #000000
4566 34994 Orgasm belt/M 2 #000000
4567 34995 Orgasm belt/L 3 #000000
4568 34996 Orgasm belt/XL 4 #000000
4569 34997 Orgasm belt/2XL 5 #000000
4570 34998 Orgasm belt/3XL 6 #000000
4571 34999 Belt+Bra/XS 7 #000000
4572 35000 Belt+Bra/S 8 #000000
4573 35001 Belt+Bra/M 9 #000000
4574 35002 Belt+Bra/L 10 #000000
4575 35003 Belt+Bra/XL 11 #000000
4576 35004 Belt+Bra/2XL 12 #000000
4577 35005 Belt+Bra/3XL 13 #000000
4578 35006 Belt+Cuffs/XS 14 #000000
4579 35007 Belt+Cuffs/S 15 #000000
4580 35008 Belt+Cuffs/M 16 #000000
4581 35009 Belt+Cuffs/L 17 #000000
4582 35010 Belt+Cuffs/XL 18 #000000
4583 35011 Belt+Cuffs/2XL 19 #000000
4584 35012 Belt+Cuffs/3XL 20 #000000
4585 35013 Full set/XS 21 #000000
4586 35014 Full set/S 22 #000000
4587 35015 Full set/M 23 #000000
4588 35016 Full set/L 24 #000000
4589 35017 Full set/XL 25 #000000
4590 35018 Full set/2XL 26 #000000
4591 35019 Full set/3XL 27 #000000
4564 35020 Oragsm belt/XS 0 #000000
4565 35021 Orgasm belt/S 1 #000000
4566 35022 Orgasm belt/M 2 #000000
4567 35023 Orgasm belt/L 3 #000000
4568 35024 Orgasm belt/XL 4 #000000
4569 35025 Orgasm belt/2XL 5 #000000
4570 35026 Orgasm belt/3XL 6 #000000
4571 35027 Belt+Bra/XS 7 #000000
4572 35028 Belt+Bra/S 8 #000000
4573 35029 Belt+Bra/M 9 #000000
4574 35030 Belt+Bra/L 10 #000000
4575 35031 Belt+Bra/XL 11 #000000
4576 35032 Belt+Bra/2XL 12 #000000
4577 35033 Belt+Bra/3XL 13 #000000
4578 35034 Belt+Cuffs/XS 14 #000000
4579 35035 Belt+Cuffs/S 15 #000000
4580 35036 Belt+Cuffs/M 16 #000000
4581 35037 Belt+Cuffs/L 17 #000000
4582 35038 Belt+Cuffs/XL 18 #000000
4583 35039 Belt+Cuffs/2XL 19 #000000
4584 35040 Belt+Cuffs/3XL 20 #000000
4585 35041 Full set/XS 21 #000000
4586 35042 Full set/S 22 #000000
4587 35043 Full set/M 23 #000000
4588 35044 Full set/L 24 #000000
4589 35045 Full set/XL 25 #000000
4590 35046 Full set/2XL 26 #000000
4591 35047 Full set/3XL 27 #000000
4564 35048 Oragsm belt/XS 0 #000000
4565 35049 Orgasm belt/S 1 #000000
4566 35050 Orgasm belt/M 2 #000000
4567 35051 Orgasm belt/L 3 #000000
4568 35052 Orgasm belt/XL 4 #000000
4569 35053 Orgasm belt/2XL 5 #000000
4570 35054 Orgasm belt/3XL 6 #000000
4571 35055 Belt+Bra/XS 7 #000000
4572 35056 Belt+Bra/S 8 #000000
4573 35057 Belt+Bra/M 9 #000000
4574 35058 Belt+Bra/L 10 #000000
4575 35059 Belt+Bra/XL 11 #000000
4576 35060 Belt+Bra/2XL 12 #000000
4577 35061 Belt+Bra/3XL 13 #000000
4578 35062 Belt+Cuffs/XS 14 #000000
4579 35063 Belt+Cuffs/S 15 #000000
4580 35064 Belt+Cuffs/M 16 #000000
4581 35065 Belt+Cuffs/L 17 #000000
4582 35066 Belt+Cuffs/XL 18 #000000
4583 35067 Belt+Cuffs/2XL 19 #000000
4584 35068 Belt+Cuffs/3XL 20 #000000
4585 35069 Full set/XS 21 #000000
4586 35070 Full set/S 22 #000000
4587 35071 Full set/M 23 #000000
4588 35072 Full set/L 24 #000000
4589 35073 Full set/XL 25 #000000
4590 35074 Full set/2XL 26 #000000
4591 35075 Full set/3XL 27 #000000
4564 35076 Oragsm belt/XS 0 #000000
4565 35077 Orgasm belt/S 1 #000000
4566 35078 Orgasm belt/M 2 #000000
4567 35079 Orgasm belt/L 3 #000000
4568 35080 Orgasm belt/XL 4 #000000
4569 35081 Orgasm belt/2XL 5 #000000
4570 35082 Orgasm belt/3XL 6 #000000
4571 35083 Belt+Bra/XS 7 #000000
4572 35084 Belt+Bra/S 8 #000000
4573 35085 Belt+Bra/M 9 #000000
4574 35086 Belt+Bra/L 10 #000000
4575 35087 Belt+Bra/XL 11 #000000
4576 35088 Belt+Bra/2XL 12 #000000
4577 35089 Belt+Bra/3XL 13 #000000
4578 35090 Belt+Cuffs/XS 14 #000000
4579 35091 Belt+Cuffs/S 15 #000000
4580 35092 Belt+Cuffs/M 16 #000000
4581 35093 Belt+Cuffs/L 17 #000000
4582 35094 Belt+Cuffs/XL 18 #000000
4583 35095 Belt+Cuffs/2XL 19 #000000
4584 35096 Belt+Cuffs/3XL 20 #000000
4585 35097 Full set/XS 21 #000000
4586 35098 Full set/S 22 #000000
4587 35099 Full set/M 23 #000000
4588 35100 Full set/L 24 #000000
4589 35101 Full set/XL 25 #000000
4590 35102 Full set/2XL 26 #000000
4591 35103 Full set/3XL 27 #000000