RALEIGH, N.C. (AP) — Legislation that would have authorized sports betting across all of North Carolina has fallen apart in the state’s General Assembly.

The House late Wednesday narrowly rejected a measure that would have adjusted how betting operators would be taxed and state proceeds would be distributed.

An unusual coalition of social conservatives and liberal Democrats halted the effort by issuing warnings about the dangers of gambling.

A House lawmaker who shepherded the two betting bills said the idea is still alive because one of the measures passed by a one-vote margin. But the General Assembly work session is likely to end late next week, leaving little time for retooling the legislation.