Fixed Query::getLimitedQuery(), wrong place for OFFSET