in reply to LONG datatypes

The following observation is probably NOT your problem, but rather a typo. Nevertheless...

You will need to use qq# ... # if you want the value of $admin to be interpolated into your SQL query. Your version uses a single-quoted string.

Update: Clarified the first sentence a bit

buckaduck