SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3246, 3247, 995, 998, 999, 1011, 1016, 
    1020, 1022, 1031, 1037, 1045, 1051, 
    1053, 1059, 1062, 1068, 1071, 2116, 
    2143, 2144, 2207, 2209, 766
  )

Query time 0.01164

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "57.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": 24,
      "rows_produced_per_join": 24,
      "filtered": "100.00",
      "index_condition": "(`jmj_test`.`jmj_product_feature_variants`.`variant_id` in (3246,3247,995,998,999,1011,1016,1020,1022,1031,1037,1045,1051,1053,1059,1062,1068,1071,2116,2143,2144,2207,2209,766))",
      "cost_info": {
        "read_cost": "52.81",
        "eval_cost": "4.80",
        "prefix_cost": "57.61",
        "data_read_per_join": "37K"
      },
      "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
766 132 #ffffff 1 default
995 165 #ffffff 0 default
998 166 #ffffff 0 default
999 166 #ffffff 0 default
1011 167 #ffffff 0 default
1016 167 #ffffff 0 default
1020 168 #ffffff 0 default
1022 168 #ffffff 0 default
1031 168 #ffffff 0 default
1037 169 #ffffff 3 default
1045 170 #ffffff 0 default
1051 171 #ffffff 0 default
1053 171 #ffffff 0 default
1059 172 #ffffff 0 default
1062 173 #ffffff 0 default
1068 174 #ffffff 0 default
1071 175 #ffffff 1 default
2116 280 #0000ff 63 default
2143 280 #2f4f4f 151 default
2144 280 #2e8b57 161 default
2207 280 #ffe4e1 428 default
2209 280 #ffb6c1 433 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default