SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3231, 3246, 3247, 1486, 1487, 1488, 1492, 
    1494, 1496, 1497, 1498, 1503, 1507, 
    1509, 1510, 1513, 1515, 1516, 1518, 
    1521, 1522, 1524, 1525, 1526, 1527, 
    1528, 1529, 1530, 1531, 1538, 1539, 
    2103, 2113, 2118, 2150, 2201, 2205, 
    766
  )

Query time 0.00150

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "91.21"
    },
    "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": 38,
      "rows_produced_per_join": 38,
      "filtered": "100.00",
      "index_condition": "(`jmj_test`.`jmj_product_feature_variants`.`variant_id` in (3231,3246,3247,1486,1487,1488,1492,1494,1496,1497,1498,1503,1507,1509,1510,1513,1515,1516,1518,1521,1522,1524,1525,1526,1527,1528,1529,1530,1531,1538,1539,2103,2113,2118,2150,2201,2205,766))",
      "cost_info": {
        "read_cost": "83.61",
        "eval_cost": "7.60",
        "prefix_cost": "91.21",
        "data_read_per_join": "58K"
      },
      "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
1486 229 #ffffff 0 default
1487 229 #ffffff 0 default
1488 229 #ffffff 0 default
1492 230 #ffffff 0 default
1494 230 #ffffff 0 default
1496 230 #ffffff 0 default
1497 230 #ffffff 0 default
1498 231 #ffffff 0 default
1503 231 #ffffff 0 default
1507 231 #ffffff 0 default
1509 231 #ffffff 0 default
1510 231 #ffffff 0 default
1513 232 #ffffff 1 default
1515 232 #ffffff 3 default
1516 232 #ffffff 4 default
1518 233 #ffffff 0 default
1521 233 #ffffff 0 default
1522 233 #ffffff 0 default
1524 234 #ffffff 0 default
1525 234 #ffffff 0 default
1526 235 #ffffff 0 default
1527 235 #ffffff 0 default
1528 235 #ffffff 0 default
1529 236 #ffffff 1 default
1530 236 #ffffff 2 default
1531 237 #ffffff 0 default
1538 238 #ffffff 0 default
1539 238 #ffffff 0 default
2103 280 #000000 0 default
2113 280 #000080 53 default
2118 280 #1e90ff 75 default
2150 280 #008000 181 default
2201 280 #ff0000 381 default
2205 280 #800000 397 default
3231 31 #ffffff 119 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default