title: Uncaught exception 'PDOException' with message SQLSTATE[42000]: Syntax error or access violation: 1064
body: <p>That is my query:</p>
  
  <pre><code> public function getAllServices($start, $limit)
  {
      $services = array();
  
      $q = $this-&gt;init()-&gt;prepare('SELECT id, service_title, time_add FROM services ORDER BY id DESC LIMIT :start, :limit');
      $q-&gt;execute(array(":start" =&gt; $start, ":limit" =&gt; $limit));
  
      while ($values = $q-&gt;fetchAll(PDO::FETCH_ASSOC))
          $services[] = $values;
  
      return $services;
  }
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''0', '10''</p>
  </blockquote>