XML-RPC Error (95042507): Error reading from database | DEBUG INFO: Got a packet bigger than 'max_allowed_packet' bytes (SELECT ctx.path, rc.roleid, rc.capability, rc.permission FROM mdl_role_capabilities rc JOIN mdl_context ctx ON (ctx.id = rc.contextid) JOIN mdl_context pctx ON (pctx.id = ? AND (ctx.id = pctx.id OR ctx.path LIKE CONCAT(pctx.path, '/%') OR pctx.path LIKE CONCAT(ctx.path, '/%'))) LEFT JOIN mdl_block_instances bi ON (ctx.contextlevel = 80 AND bi.id = ctx.instanceid) LEFT JOIN mdl_context bpctx ON (bpctx.id = bi.parentcontextid) WHERE rc.roleid = ? AND (ctx.contextlevel <= 50 OR bpctx.contextlevel < 50) ) UNION (SELECT ctx.path, rc.roleid, rc.capability, rc.permission FROM mdl_role_capabilities rc JOIN mdl_context ctx ON (ctx.id = rc.contextid) JOIN mdl_context pctx ON (pctx.id = ? AND (ctx.id = pctx.id OR ctx.path LIKE CONCAT(pctx.path, '/%') OR pctx.path LIKE CONCAT(ctx.path, '/%'))) LEFT JOIN mdl_block_instances bi ON (ctx.contextlevel = 80 AND bi.id = ctx.instanceid) LEFT JOIN mdl_context bpctx ON (bpctx.id = bi.parentcontextid) WHERE rc.roleid = ? AND (ctx.contextlevel <= 50 OR bpctx.contextlevel < 50) ) UNION (SELECT ctx.path, rc.roleid, rc.capability, rc.permission FROM mdl_role_capabilities rc JOIN mdl_context ctx ON (ctx.id = rc.contextid) JOIN mdl_context pctx ON (pctx.id = ? AND (ctx.id = pctx.id OR ctx.path LIKE CONCAT(pctx.path, '/%') OR pctx.path LIKE CONCAT(ctx.path, '/%'))) LEFT JOIN mdl_block_instances bi ON (ctx.contextlevel = 80 AND bi.id = ctx.instanceid) LEFT JOIN mdl_context bpctx ON (bpctx.id = bi.parentcontextid) WHERE rc.roleid = ? AND (ctx.contextlevel <= 50 OR bpctx.contextlevel < 50) )ORDER BY capability [array ( 0 => '1', 1 => 7, 2 => '2', 3 => 8, 4 => '1', 5 => 9, )] | ERRORCODE: dmlreadexception