setState('Select'); $endOfStatement = $sql->getPosition(';'); $statement = $sql->getData($endOfStatement); $sql->setPointer($endOfStatement); return $statement; } }