Error: count(): Parameter must be an array or an object that implements Countable (2): /var/www/vhosts/obive.net/httpdocs/chronicle/lib/lib.php:38 Journal | obive.net

obive.net

Exception:SQLSTATE[HY000]: General error: 1210 Incorrect arguments to mysqld_stmt_execute

object(PDOException)#3 (8) {
  ["message":protected]=>
  string(79) "SQLSTATE[HY000]: General error: 1210 Incorrect arguments to mysqld_stmt_execute"
  ["string":"Exception":private]=>
  string(0) ""
  ["code":protected]=>
  string(5) "HY000"
  ["file":protected]=>
  string(55) "/var/www/vhosts/obive.net/httpdocs/chronicle/lib/db.php"
  ["line":protected]=>
  int(80)
  ["trace":"Exception":private]=>
  array(3) {
    [0]=>
    array(5) {
      ["file"]=>
      string(55) "/var/www/vhosts/obive.net/httpdocs/chronicle/lib/db.php"
      ["line"]=>
      int(80)
      ["function"]=>
      string(7) "execute"
      ["class"]=>
      string(12) "PDOStatement"
      ["type"]=>
      string(2) "->"
    }
    [1]=>
    array(3) {
      ["file"]=>
      string(56) "/var/www/vhosts/obive.net/httpdocs/chronicle/journal.php"
      ["line"]=>
      int(62)
      ["function"]=>
      string(22) "getDbResultsWithParams"
    }
    [2]=>
    array(4) {
      ["file"]=>
      string(54) "/var/www/vhosts/obive.net/httpdocs/chronicle/index.php"
      ["line"]=>
      int(86)
      ["args"]=>
      array(1) {
        [0]=>
        string(56) "/var/www/vhosts/obive.net/httpdocs/chronicle/journal.php"
      }
      ["function"]=>
      string(7) "include"
    }
  }
  ["previous":"Exception":private]=>
  NULL
  ["errorInfo"]=>
  array(3) {
    [0]=>
    string(5) "HY000"
    [1]=>
    int(1210)
    [2]=>
    string(42) "Incorrect arguments to mysqld_stmt_execute"
  }
}
SELECT *, unix_timestamp(created_dt) ts FROM News WHERE 1 =1 and published = 1 ORDER BY id DESC LIMIT :first , :perpage