SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3246, 3247, 2617, 2626, 1774, 1781, 1782, 
    1793, 1802, 1805, 1808, 1807, 1818, 
    1819, 1822, 1824, 1825, 3137, 1842, 
    1756, 2119, 2137, 766
  )

Query time 0.00088

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "55.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": 23,
      "rows_produced_per_join": 23,
      "filtered": "100.00",
      "index_condition": "(`jmj_test`.`jmj_product_feature_variants`.`variant_id` in (3246,3247,2617,2626,1774,1781,1782,1793,1802,1805,1808,1807,1818,1819,1822,1824,1825,3137,1842,1756,2119,2137,766))",
      "cost_info": {
        "read_cost": "50.61",
        "eval_cost": "4.60",
        "prefix_cost": "55.21",
        "data_read_per_join": "35K"
      },
      "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
1756 258 #ffffff 1 default
1774 259 #ffffff 0 default
1781 260 #ffffff 0 default
1782 260 #ffffff 0 default
1793 261 #ffffff 0 default
1802 261 #ffffff 0 default
1805 261 #ffffff 0 default
1807 262 #ffffff 2 default
1808 262 #ffffff 1 default
1818 263 #ffffff 0 default
1819 263 #ffffff 0 default
1822 264 #ffffff 0 default
1824 265 #ffffff 1 default
1825 265 #ffffff 2 default
1842 267 #ffffff 0 default
2119 280 #4682b4 77 default
2137 280 #48d1cc 137 default
2617 337 #ffffff 0 default
2626 337 #ffffff 0 default
3137 416 #ffffff 0 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default