It looks like you defined a storage item on the staffCardDetails table for the LST Student card and that that is generating the confusion, so please check your storage-item definitions in the database setup.
Also, keep in mind that the triggers do not use any of the filters you have defined (if any). So you might need to add additional filter conditions to the trigger condition if you want to apply a filter to the cards that are selected for printing.
Senior Software Engineer
"A reasonable man adapts himself to the world. The unreasonable man persists in trying to adapt the world to himself. All progress, therefore, depends on the unreasonable man." (Bernard Shaw)