in reply to Re^2: Passing a perl variable in SQL AND statement
in thread Passing a perl variable in SQL AND statement
Based on what the error message is complaining about, I'd recommend that you try to remove the semi-colon at the end of the SQL statement.
Also, I don't know where your variable will be getting it's values from, but you might want to check out Little Bobby Tables for info about preventing SQL injection issues.
In Section
Seekers of Perl Wisdom