AS not working; dies when tries to paginate; puts out the tables if not paginated but all the columns are empty.