sql is logged before assignment

In dao_methods.find the sql statement is logged prior to its assignment.