title: How to run a LIKE %..% query using RedBean
body: <p>I would like to run a query at Redbean. 
  The query is the following one </p>
  
  <blockquote>
    <p>"SELECT * FROM <code>tablename</code> WHERE name LIKE "%querystring%" OR
    description LIKE  "%querystring%"</p>
  </blockquote>
  
  <p>I tried the following one </p>
  
  <pre><code>$querystring = "querystring";
  </code></pre>
  
  <blockquote>
    <p>R::findOne( 'SELECT * FROM tablename WHERE name LIKE ? OR description
    LIKE ?', "%$querystring%");</p>
  </blockquote>
  
  <p>However, this did not work, resulting in error 'Identifier does not conform to RedBeanPHP security policies'.</p>
  
  <p>Another thing I tried was based on this:</p>
  
  <blockquote>
    <p>R::getAll( 'SELECT * FROM table WHERE title LIKE %:title%', 
       [':title' => 'home']
    );</p>
  </blockquote>
  
  <p>That gave a RedBean error 'undefined offset: 0'</p>
  
  <p>I'm trying to find a way to do this using prepared statements, so I don't want to construct the query as a string and send it to the server later.</p>