code: function (req, res) {
  
              req.params.table = escape(req.params.table);
  
              //Request DB structure
              lastQry = connection.query('SHOW COLUMNS FROM ??', req.params.table, function (err, columns) {
  
                  //Get primary key of table if not specified via query
                  var field = findPrim(columns, req.query[settings.paramPrefix + 'field']);
  
                  lastQry = connection.query('SELECT * FROM ?? WHERE ??.?? IN (' + req.params.id + ')', [req.params.table, req.params.table, field], function (err, rows) {
                      if (err) return sendError(res, err.code);
                      res.send({
                          result: 'success',
                          json: rows,
                          table: req.params.table,
                          length: rows.length
                      });
                  });
              });
  
          }
docs: find single entry by selector (default is primary key)
  @param req
  @param res