I signed up, just to tell you guys that \n unless covered in DOUBLE QUOTES is treated as a normal slash and n. "\n" instead of '\n' in the query should fix it