SELECT 
  * 
FROM 
  cscart_logos 
WHERE 
  layout_id IN (1, 0) 
  AND style_id IN ('FabrikStyleOne', '') 
  AND storefront_id IN (1, 0) 
  AND company_id = 1

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "8.50"
    },
    "table": {
      "table_name": "cscart_logos",
      "access_type": "ALL",
      "rows_examined_per_scan": 31,
      "rows_produced_per_join": 0,
      "filtered": "3.23",
      "cost_info": {
        "read_cost": "8.30",
        "eval_cost": "0.20",
        "prefix_cost": "8.50",
        "data_read_per_join": "263"
      },
      "used_columns": [
        "logo_id",
        "layout_id",
        "style_id",
        "company_id",
        "type",
        "storefront_id"
      ],
      "attached_condition": "((`db_emaika1`.`cscart_logos`.`company_id` = 1) and (`db_emaika1`.`cscart_logos`.`layout_id` in (1,0)) and (`db_emaika1`.`cscart_logos`.`style_id` in ('FabrikStyleOne','')) and (`db_emaika1`.`cscart_logos`.`storefront_id` in (1,0)))"
    }
  }
}

Result

logo_id layout_id style_id company_id type storefront_id
11 1 FabrikStyleOne 1 theme 1
12 1 FabrikStyleOne 1 favicon 1
13 1 FabrikStyleOne 1 mail 1