diff --git a/src/Eisodos/Parsers/SQLParser.php b/src/Eisodos/Parsers/SQLParser.php index 5a795e0..be07381 100755 --- a/src/Eisodos/Parsers/SQLParser.php +++ b/src/Eisodos/Parsers/SQLParser.php @@ -263,10 +263,10 @@ private function _runSQL($structureParameters_): string { ); } } - if (count($resultSet_['rows']) <= $a + 1) { + if (count($resultSet_['rows']) <= $a) { $row = false; } else { - $row = $resultSet_['rows'][$a + 1]; + $row = $resultSet_['rows'][$a]; } if (((integer)$structureParameters_["TABLECOLS"] > 0) and ($structureParameters_["TABLEROWEND"] !== "")) { if (($row===false)