'1' "; replace with: $savequery .= " AND t1.B_Kept <> 'K' ";"> '1' "; replace with: $savequery .= " AND t1.B_Kept <> 'K' ";">