Query SELECT code FROM `tree` WHERE id= failed