SELECT 
  * 
FROM 
  cscart_product_feature_variants 
WHERE 
  variant_id IN (
    1, 3, 125, 172, 296, 258, 173, 127, 149, 
    120, 123, 234, 146, 57, 58, 147, 176, 
    42, 31, 26, 267, 298, 262, 263, 264, 265, 
    260, 299, 237, 238, 154
  )

Query time 0.00072

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "21.71"
    },
    "table": {
      "table_name": "cscart_product_feature_variants",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "variant_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 31,
      "rows_produced_per_join": 31,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_feature_variants`.`variant_id` in (1,3,125,172,296,258,173,127,149,120,123,234,146,57,58,147,176,42,31,26,267,298,262,263,264,265,260,299,237,238,154))",
      "cost_info": {
        "read_cost": "18.61",
        "eval_cost": "3.10",
        "prefix_cost": "21.71",
        "data_read_per_join": "47K"
      },
      "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
1 1 1 default
3 1 2 default
26 3 0 default
31 3 0 default
42 3 0 default
57 6 #ffffff 0 default #ffffff
58 6 #ffffff 0 default #ffffff
120 56 0 default
123 57 #ffffff 0 default #ffffff
125 58 #ffffff 0 default #ffffff
127 56 #ffffff 0 default #ffffff
146 65 #ffffff 0 default #ffffff
147 66 #ffffff 0 default #ffffff
149 56 0 default
154 39 #78866b 0 default #ffffff
172 58 0 default
173 55 0 default
176 66 #ffffff 0 default #ffffff
234 65 0 default
237 39 #ac937f 0 default #ffffff
238 39 #4f5b5c 0 thumbnail #ffffff
258 55 0 default
260 10 0 default
262 47 0 default
263 47 0 default
264 47 0 default
265 47 0 default
267 86 0 default
296 58 0 default
298 86 0 default
299 10 0 default