Fixed error with trying to output objects when displaying SQL logs

DateTime would appear in bindings and cause an exception to occur, so
print_r it to a variable then output (applicable to arrays/objects)