A motorist nearly crashed into a garda car after driving through a red traffic light with a mobile phone in his hand and an unrestrained child on board.
Gardai had to take evasive action to avoid a collision with Michael Maughan (22), who broke the red light while a child with no seat belt sat in a woman's lap in the front passenger seat.
Judge Dermot Dempsey banned him from driving for six months when he pleaded guilty to motoring offences following the incident in north Dublin.
Swords District Court heard Maughan, a father-of-two currently serving a two-and-a-half-year sentence for another offence, had 57 previous convictions, 22 of which were for road traffic offences.
The court heard the defendant was driving along Malahide Road on December 1, 2017, at around 9.25pm.
As he approached the junction of Moyne Road and Malahide Road, he was observed by gardai holding a mobile phone.
He also broke a red light and nearly collided with the patrol vehicle. A woman had a young child on her lap unrestrained in the front seat. The defendant was also not wearing a seat belt.
Maughan, of Silloge Green, New Road, Ballymun, Dublin, admitted breaking a red light, driving without reasonable consideration, failing to have a child restrained, failing to wear a seat belt and holding a mobile phone while driving.
Maughan apologised for his actions, his barrister said.
"He is sorry and he admits it was careless," the barrister said.
"He is hoping to move to Shelton Abbey soon and while in prison he works in the staff mess and attends school."
Judge Dempsey imposed a three-month driving ban for holding a mobile phone, a four-month ban for driving through a red light and a six-month ban for driving without reasonable consideration - all to run concurrently.