SELECT 
  category_id, 
  ab__lc_catalog_image_control 
FROM 
  netting_categories 
WHERE 
  category_id in (
    '297', '366', '401', '382', '276', '290', 
    '335', '361', '392', '434', '419', 
    '369', '416', '378', '274', '451', 
    '331', '347', '444', '373', '376', 
    '304', '275', '310', '447', '383', 
    '265', '282', '381', '400', '384', 
    '334', '441', '333', '466'
  )

Query time 0.00125

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "netting_categories",
          "access_type": "ALL",
          "possible_keys": ["PRIMARY", "p_category_id"],
          "rows": 180,
          "filtered": 19.44444466,
          "attached_condition": "netting_categories.category_id in ('297','366','401','382','276','290','335','361','392','434','419','369','416','378','274','451','331','347','444','373','376','304','275','310','447','383','265','282','381','400','384','334','441','333','466')"
        }
      }
    ]
  }
}

Result

category_id ab__lc_catalog_image_control
347 top
331 top
333 top
334 top
335 top
310 top
304 top
297 top
290 top
282 top
276 top
275 top
274 top
265 top
361 top
366 top
369 top
373 top
376 top
378 top
381 top
382 top
383 top
384 top
392 top
400 top
401 top
416 top
419 top
434 top
441 top
444 top
447 top
451 top
466 none