A baby was in serious condition, and several other people injured, when a fire erupted inside an East Flatbush building afternoon, an FDNY spokesman said.

The blaze broke out in the three-story building on Church Avenue, near East 48th Street, just before 3 p.m., and was under control about 30 minutes later. The baby was taken to Kings County Hospital and appeared to be suffering from smoke inhalation.

Four other adults were also take to Kings County with minor smoke inhalation, the spokesman said.

It was not immediately clear how the fire started.