It looks like the column on the table is allergy, not allergy_ids