diff --git a/sql/supporters-schema.sql b/sql/supporters-schema.sql index 8aa59f4..da85a08 100644 --- a/sql/supporters-schema.sql +++ b/sql/supporters-schema.sql @@ -291,7 +291,7 @@ CREATE VIEW UserOperation_fix_tshirt_size_request AS request.date_requested as request_date, request.notes as note, donor.id as donor_id, request.id as request_id FROM donor, request_configuration, request, request_type WHERE request.id not in (select request_id from fulfillment) AND - request_type.type LIKE "%shirt%" AND + request_type.type LIKE '%shirt%' AND request_type.id = request.request_type_id AND request.donor_id = donor.id AND request_configuration.id = request.request_configuration_id