title: MySQL error User has exceeded the 'max_questions' resource
body: <blockquote>
    <p>PDOException: SQLSTATE[42000]: Syntax error or access violation: 1226
    User 'bb99ddb719cd2f' has exceeded the 'max_questions' resource
    (current value: 3600) in execute().</p>
  </blockquote>
  
  <p>Earlier code was working file but suddenly it has started giving errors at every <code>execute()</code>.</p>
  
  <p>Here is my code:</p>
  
  <p>Actual file:</p>
  
  <pre><code>&lt;?php 
  $sql="SELECT count(job_status.is_approved) as is_approved 
      from job_status 
      WHERE job_status.job_id=:job_id and job_status.is_approved=1";
  $sth=$conn-&gt;prepare($sql); 
  $sth-&gt;bindValue("job_id",$job_id); 
  try { 
      $sth-&gt;execute();
  } 
  catch(Exception $e) { 
      Rollbar::report_exception($e); 
  } 
  $res=$sth-&gt;fetchAll(); 
  $stats=$res[0]['is_approved']; 
  $status=$stats?'1':'0'; 
  return $status;
  </code></pre>
  
  <p>Db connection file:</p>
  
  <pre><code>&lt;?php 
  require_once('config.php'); 
  try { 
      $dsn = "mysql:host=$DB_HOST;dbname=$DB_DATABASE"; 
      $conn = new PDO($dsn, $DB_USER, $DB_PASSWORD); 
      $conn-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 
      $conn-&gt;exec("SET NAMES 'utf8'"); 
  } 
  catch(PDOException $e) { 
      echo 'ERROR: ' . $e-&gt;getMessage(); 
  } 
  ?&gt; 
  </code></pre>