SELECT 
  COUNT(DISTINCT sb.booking_id) 
FROM 
  cscart_ec_seat_bookings sb 
  INNER JOIN cscart_ec_seats s ON sb.seat_id = s.seat_id 
WHERE 
  s.layout_id = 1 
  AND sb.status = 'confirmed'

Query time 0.00189

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.40"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "sb",
          "access_type": "ALL",
          "possible_keys": [
            "idx_seat_event"
          ],
          "rows_examined_per_scan": 4,
          "rows_produced_per_join": 1,
          "filtered": "33.33",
          "cost_info": {
            "read_cost": "1.53",
            "eval_cost": "0.27",
            "prefix_cost": "1.80",
            "data_read_per_join": "405"
          },
          "used_columns": [
            "booking_id",
            "seat_id",
            "status"
          ],
          "attached_condition": "(`pankajecarter_setup3`.`sb`.`status` = 'confirmed')"
        }
      },
      {
        "table": {
          "table_name": "s",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "idx_layout_category"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "seat_id"
          ],
          "key_length": "4",
          "ref": [
            "pankajecarter_setup3.sb.seat_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 0,
          "filtered": "40.00",
          "cost_info": {
            "read_cost": "1.33",
            "eval_cost": "0.11",
            "prefix_cost": "3.40",
            "data_read_per_join": "128"
          },
          "used_columns": [
            "seat_id",
            "layout_id"
          ],
          "attached_condition": "(`pankajecarter_setup3`.`s`.`layout_id` = 1)"
        }
      }
    ]
  }
}

Result

COUNT(DISTINCT sb.booking_id)
4