update to model for counting rows
Changed the calc_found_rows method to prepend the select statement to the db query builder as it must be the first select clause
Changed the calc_found_rows method to prepend the select statement to the db query builder as it must be the first select clause