SELECT c.id, c.name, c.name_prefix, c.warehouse_id, c.family_id, c.shelf_id, c.max_amount, c.show_packing, c.stack, t.reino_id FROM shelf_config c JOIN vn2008.Tipos t ON t.tipo_id = c.family_id

Shelves

SELECT id, reino FROM vn2008.reinos WHERE display != FALSE ORDER BY reino
SELECT tipo_id, Tipo FROM vn2008.Tipos WHERE reino_id = #reign ORDER BY Tipo
SELECT id, name FROM vn2008.warehouse WHERE reserve ORDER BY name
SELECT id, name FROM shelf