Shelves

SELECT c.id, c.name reportTitle, c.namePrefix, c.warehouse, c.family, c.shelf, c.maxAmount, c.showPacking, c.stack, t.reino_id realm FROM shelfConfig c JOIN vn2008.Tipos t ON t.tipo_id = c.family
SELECT id, reino FROM vn2008.reinos WHERE display != FALSE ORDER BY reino
SELECT tipo_id, Tipo FROM vn2008.Tipos WHERE reino_id = #realm ORDER BY Tipo
SELECT id, name FROM vn2008.warehouse WHERE reserve ORDER BY name
SELECT id, name FROM shelf