diff --git a/app/views/dmsf_workflows/_log.html.erb b/app/views/dmsf_workflows/_log.html.erb
index 959a8ea4..aff97ed5 100644
--- a/app/views/dmsf_workflows/_log.html.erb
+++ b/app/views/dmsf_workflows/_log.html.erb
@@ -71,7 +71,7 @@
<%= format_time(revision.dmsf_workflow_started_at) if revision.dmsf_workflow_started_at %> |
<% sql = "SELECT c.action, c.note, c.created_at, c.author_id, a.user_id, s.step FROM dmsf_workflow_step_actions c RIGHT JOIN dmsf_workflow_step_assignments a ON a.id = c.dmsf_workflow_step_assignment_id RIGHT JOIN dmsf_workflow_steps s ON s.id = a.dmsf_workflow_step_id WHERE a.dmsf_file_revision_id = #{revision.id} ORDER BY s.step, c.action DESC, c.created_at" %>
- <% result = DmsfWorkflowStep.connection.execute sql %>
+ <% result = DmsfWorkflowStep.connection.exec_query sql %>
<% result.each_with_index do |row, i| %>
| <%= row['step'] %> |