Failed to establish database connection.
SELECT d.label, s.scatid, s.label, p.pcatid, p.label FROM def_cat_arida d, def_scat_arida s, def_pcat_arida p, rel_cat_arida r WHERE d.catid = r.catid AND r.scatid = s.scatid AND substring(r.scatid from 1 for 1 ) = p.pcatid AND d.catid = '11050' ORDER BY scatid;