public static function getRowsNumberOverLimitInSqlStatement($paramStatement) { $statement = DatabaseOperation::queryPDO($paramStatement); if ($statement) { $statement->execute(); $resultFoundRows = DatabaseOperation::databaseAcces()->query('SELECT found_rows()'); $RowsNumber = $resultFoundRows->fetchColumn(); } return $RowsNumber; }