public static function queryAndCheck(\XoopsMySQLDatabase $xoopsDB, string $sql, ?int $limit = null, ?int $start = null): \mysqli_result
    {
        $limit ??= 0;
        $start ??= 0;
        $result = $xoopsDB->query($sql, $limit, $start);