@Elani ******
, you were given incorrect information from the Phuket immigration office because you can apply for a Non-O inside the country.
Now perhaps your husband didn't have the required number of days left on his permission to stay stamp to cover the 'under consideration" period a Non-O visa inside the country goes under (14 - 21 days depending on the immigration office).