make sure PDO backend return integers for startIndex, totalResults