If I place fac_fac_number = 'SID-999999-S002' directly into the query in place of the where_str variable, the query will work fine. I can not leave the double quotes around the variable value off because this will cause its own error because of the spaces and equal sign in the variable value.