Yes, pitfalls as discussed on this thread: http://www.somersoft.com/forums/showthread.php?t=57010
Primary one is that YOU will be considered responsible for the WHOLE loan as will your friend. But the lender will only take into account 50% of the rental income for debt servicing - double whammy.