Fixed an SQL prepared statement.