Changed head.tbl_sql() to limit by setting build_query(x)$fetch(n) instead of limit. I have not remove any code using LIMIT sql statement; just removed the need for it.