SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    12775, 12776, 12777, 12778, 12779, 12780, 
    12781, 12753, 12754, 12755, 12756, 
    12757, 12758, 12759, 12760, 12761, 
    12762, 12763, 12764, 12765, 12766, 
    12767, 12768, 12769, 12770, 12771, 
    12772, 12773, 12774
  )

Query time 0.00059

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.19"
    },
    "table": {
      "table_name": "cscart_product_popularity",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "total"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 29,
      "rows_produced_per_join": 29,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "3.29",
        "eval_cost": "2.90",
        "prefix_cost": "6.19",
        "data_read_per_join": "928"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`test2_gaseus`.`cscart_product_popularity`.`product_id` in (12775,12776,12777,12778,12779,12780,12781,12753,12754,12755,12756,12757,12758,12759,12760,12761,12762,12763,12764,12765,12766,12767,12768,12769,12770,12771,12772,12773,12774))"
    }
  }
}

Result

product_id
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781