BENSALEM, Pa., (CBS) – Bensalem Police say they have arrested a Philadelphia man for allegedly leaving his seven-year-old child alone in a vehicle in the parking lot of Parx Casino.

At about 6:27 p.m. Tuesday, Bensalem Police say they arrested 32-year-old Bryan Bolds.

READ MORE: Supply Chain Shortage Leads To Some Philly Area Hardware Stores Being Overstocked With Winter Weather Products

Police say it was learned that the child was left unattended while Bolds allegedly was inside playing blackjack.

According to police, they arrived on scene after a passer-by reportedly heard the child crying and yelling for his father.

READ MORE: Woman Beaten To Death With Pipe In Old City 'Workplace Violence' Attack, Sources Say

Police say they transported the child back to police headquarters and later, with the help of the Pennsylvania State Police and Parx Casino Security, took custody of Bolds at a gaming table.

Police say Bolds was arraigned on a misdemeanor charge of Endangering the Welfare of a Child.

MORE NEWS: 2 Killed In Camden County Crash Involving Fire Truck