Pagination in CodeIgniter from multiple table

department table
+--------------+----------------+
| DepartmentID | DepartmentName |
+--------------+----------------+
| 1 | Admin |
| 2 | Accounts |
| 3 | Software |
| 4 | Support |
+--------------+----------------+
emp tab...