Changed variable names from #{variableName} to @variableName to fit the SQL standard.