in reply to LONG datatypes
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