Fixed sql splitting

Was breaking on '&nbsp;'