code: public String getSelectMNStatement(String table, String[] selectColumns, String[] columns)
      {
          SqlStatement sql;
          String result;
  
          sql = new SqlSelectMNStatement(table, selectColumns, columns, logger);
          result = sql.getStatement();
  
          if (logger.isDebugEnabled())
          {
              logger.debug("SQL:" + result);
          }
          return result;
      }
docs: generate a SELECT-Statement for M:N indirection table
  
  @param table the indirection table
  @param selectColumns selected columns
  @param columns for where