SELECT 
  category_id, 
  ab__lc_catalog_image_control 
FROM 
  ushop_categories 
WHERE 
  category_id in (
    '318', '328', '329', '330', '331', '332', 
    '333', '334', '335', '325', '320', 
    '326', '319', '336', '323', '337', 
    '315', '338', '339', '324', '340', 
    '341', '321', '342', '317', '322', 
    '792', '316', '791', '343', '344', 
    '775', '345', '327', '346', '375', 
    '767', '768', '769', '770', '771', 
    '772', '773', '774'
  )

Query time 0.00495

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "30.81"
    },
    "table": {
      "table_name": "ushop_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "p_category_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "category_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 44,
      "rows_produced_per_join": 44,
      "filtered": "100.00",
      "index_condition": "(`marketplace`.`ushop_categories`.`category_id` in ('318','328','329','330','331','332','333','334','335','325','320','326','319','336','323','337','315','338','339','324','340','341','321','342','317','322','792','316','791','343','344','775','345','327','346','375','767','768','769','770','771','772','773','774'))",
      "cost_info": {
        "read_cost": "26.41",
        "eval_cost": "4.40",
        "prefix_cost": "30.81",
        "data_read_per_join": "143K"
      },
      "used_columns": [
        "category_id",
        "ab__lc_catalog_image_control"
      ]
    }
  }
}

Result

category_id ab__lc_catalog_image_control
315 left
316 left
317 left
318 left
319 left
320 left
321 left
322 left
323 left
324 left
325 left
326 left
327 left
328 left
329 left
330 left
331 left
332 left
333 left
334 left
335 left
336 left
337 left
338 left
339 left
340 left
341 left
342 left
343 left
344 left
345 none
346 left
375 left
767 none
768 none
769 none
770 none
771 none
772 none
773 none
774 none
775 none
791 none
792 none