title: rails find_by_sql LIKE escaping %
body: <p>I am trying to execute a find_by_sql statement which involves a SELECT statement with a LIKE operator. For sake of brevity, let's assume the statement is "SQL * FROM posts where lower(name) LIKE '%hello%'"</p>
  
  <p>Seems like rails throws an exception about "% being a malformed format string". I have tried to escape the sql statement using "SQL * FROM posts where lower(name) LIKE '\%hello\%'"</p>
  
  <p>Still the same error message shows up. Any ideas ?</p>