SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3246, 3247, 434, 438, 420, 422, 425, 748, 
    431, 530, 440, 441, 1676, 2242, 2243, 
    2244, 2245, 2246, 768, 769, 2250, 3156, 
    771, 2103, 2104, 2109, 2112, 2113, 2118, 
    2130, 2138, 2145, 2163, 2164, 2172, 
    2198, 2225, 2237, 766
  )

Query time 0.02106

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "93.61"
    },
    "table": {
      "table_name": "jmj_product_feature_variants",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "variant_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 39,
      "rows_produced_per_join": 39,
      "filtered": "100.00",
      "index_condition": "(`jmj_test`.`jmj_product_feature_variants`.`variant_id` in (3246,3247,434,438,420,422,425,748,431,530,440,441,1676,2242,2243,2244,2245,2246,768,769,2250,3156,771,2103,2104,2109,2112,2113,2118,2130,2138,2145,2163,2164,2172,2198,2225,2237,766))",
      "cost_info": {
        "read_cost": "85.81",
        "eval_cost": "7.80",
        "prefix_cost": "93.61",
        "data_read_per_join": "60K"
      },
      "used_columns": [
        "variant_id",
        "feature_id",
        "url",
        "color",
        "position",
        "abt__ut2_color_style",
        "abt__ut2_multicolor"
      ]
    }
  }
}

Result

variant_id feature_id url color position abt__ut2_color_style abt__ut2_multicolor
420 63 #ffffff 0 default
422 63 #ffffff 0 default
425 63 #ffffff 0 default
431 64 #ffffff 3 default
434 65 #ffffff 0 default
438 65 #ffffff 0 default
440 66 #ffffff 1 default
441 66 #ffffff 2 default
530 94 #ffffff 2 default
748 64 #ffffff 2 default
766 132 #ffffff 1 default
768 133 #ffffff 11 default
769 133 #ffffff 12 default
771 133 #ffffff 15 default
1676 133 #ffffff 2 default
2103 280 #000000 0 default
2104 280 #696969 17 default
2109 280 #dcdcdc 32 default
2112 280 #191970 52 default
2113 280 #000080 53 default
2118 280 #1e90ff 75 default
2130 280 #f0ffff 113 default
2138 280 #00ced1 141 default
2145 280 #3cb371 166 default
2163 280 #f0fff0 241 default
2164 280 #f5fffa 242 default
2172 280 #ffebcd 254 default
2198 280 #cd5c5c 377 default
2225 280 #9932cc 504 default
2237 280 #f5f5f5 550 default
2242 133 #ffffff 3 default
2243 133 #ffffff 4 default
2244 133 #ffffff 5 default
2245 133 #ffffff 6 default
2246 133 #ffffff 7 default
2250 133 #ffffff 13 default
3156 133 #ffffff 15 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default