SELECT `diagnosis`.* FROM `diagnosis` WHERE (profile_id = 5812) AND (surgery_id != 0)