Frappe.db.sql not worked in workflow condition

(topic deleted by author)