my $query = q{SELECT x FROM Referrals WHERE [Today's Date]>?}; $sth = $dbh->prepare($query); $sth->execute($date); #### DBD::ODBC::st execute failed: called with 1 bind variables when 0 are needed at C:\Documents and Settings\xxx\Desktop\distribute.pl line 263.