Broken ikea Lycksele chair bed (Grays RM17)

I have an ikea chair bed one one the legs has fallen off but it looks like someone might be able to weld it back on? Thought I’d offer it in case someone was able to fix it or even repurpose it. No mattress included