Line 53 is
$sLimit = "LIMIT ".intval( $_GET['iDisplayStart'] )." OFFSET ". intval( $_GET['iDisplayLength'] );but has to be
$sLimit = "LIMIT ".intval( $_GET['iDisplayLength'] )." OFFSET ". intval( $_GET['iDisplayStart'] );otherwise the first table page is empty and clicking through next pages adds results to the current page.