fix returning errors when there are no columns; applies to fetch, fetchAll, fetchAllSync