Whoops! There was an error.
PDOException (42000)
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 '-8,8' at line 14 PDOException thrown 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 '-8,8' at line 14" Stacktrace: #3 PDOException in /home/hoqkclc/e3mg.ga/views/pages/actualite.php:50 #2 PDO:query in /home/hoqkclc/e3mg.ga/views/pages/actualite.php:50 #1 require_once in /home/hoqkclc/e3mg.ga/configs/route.php:59 #0 {closure} in /home/hoqkclc/e3mg.ga/public/index.php:25
Stack frames (4)
3
PDOException
/views/pages/actualite.php50
2
PDO query
/views/pages/actualite.php50
1
require_once
/configs/route.php59
0
{closure}
/public/index.php25
/home/hoqkclc/e3mg.ga/views/pages/actualite.php
article.articleImage
FROM article
WHERE brouillon = 1 ORDER BY article.publishDate DESC limit 3
";
 
$sql3 = "SELECT 
categories.categoriesName,
COUNT(article.article_id) AS total_articles
FROM 
categories
LEFT JOIN 
article ON article.category = categories.categories_id
GROUP BY 
categories.categories_id, categories.categoriesName
ORDER BY 
total_articles DESC;
";
$recents = $db ->query($sql2);
$categories = $db ->query($sql3);
$results = $db ->query($sql);
Database::disconnect(); 
 
?>
 
<section class="page-title-section overlay" data-background="images/backgrounds/batiment-e3mg.jpg">
  <div class="container">
    <div class="row">
      <div class="col-md-8">
        <ul class="list-inline custom-breadcrumb">
          <li class="list-inline-item"><a class="h2 text-primary font-secondary" href="@@page-link">Actualités</a></li>
          <li class="list-inline-item text-white h3 font-secondary @@nasted"></li>
        </ul>
        <!-- <p class="text-lighten">Our courses offer a good compromise between the continuous assessment favoured by some universities and the emphasis placed on final exams by others.</p> -->
      </div>
    </div>
  </div>
</section>
<!-- /page title -->
 
  <section class="main">
/home/hoqkclc/e3mg.ga/views/pages/actualite.php
article.articleImage
FROM article
WHERE brouillon = 1 ORDER BY article.publishDate DESC limit 3
";
 
$sql3 = "SELECT 
categories.categoriesName,
COUNT(article.article_id) AS total_articles
FROM 
categories
LEFT JOIN 
article ON article.category = categories.categories_id
GROUP BY 
categories.categories_id, categories.categoriesName
ORDER BY 
total_articles DESC;
";
$recents = $db ->query($sql2);
$categories = $db ->query($sql3);
$results = $db ->query($sql);
Database::disconnect(); 
 
?>
 
<section class="page-title-section overlay" data-background="images/backgrounds/batiment-e3mg.jpg">
  <div class="container">
    <div class="row">
      <div class="col-md-8">
        <ul class="list-inline custom-breadcrumb">
          <li class="list-inline-item"><a class="h2 text-primary font-secondary" href="@@page-link">Actualités</a></li>
          <li class="list-inline-item text-white h3 font-secondary @@nasted"></li>
        </ul>
        <!-- <p class="text-lighten">Our courses offer a good compromise between the continuous assessment favoured by some universities and the emphasis placed on final exams by others.</p> -->
      </div>
    </div>
  </div>
</section>
<!-- /page title -->
 
  <section class="main">
/home/hoqkclc/e3mg.ga/configs/route.php
$router->map('GET','/filiere-formation',function(){
    require_once "../views/pages/filiere-formation.php";
},'filiere-formation');

$router->map('GET','/formation-continue',function(){
    require_once "../views/pages/buld.php";
},'formation-continue');

$router->map('GET','/lab-genie-procede',function(){
    require_once "../views/pages/buld.php";
},'lab-genie-procede');

$router->map('GET','/lab-geoscience',function(){
    require_once "../views/pages/buld.php";
},'lab-geoscience');



$router->map('GET','/actualite',function(){
    require_once "../views/pages/actualite.php";
},'actualite');
$router->map('GET','/index.php?page=[i]',function(){
    require_once "../views/pages/actualite.php";
},'actualite.actualite');


$router->map('GET','/actualite-[i:id]',function($id){
    require_once "../views/pages/articles-single.php";
},'actualite.single');

$router->map('GET','/ressource',function(){
    require_once "../views/pages/buld.php";
},'notice');
$router->map('GET','/technicien-en-mines-et-metallurgie',function(){
    require_once "../views/pages/buld.php";
},'lmm');
$router->map('GET','/technicien-maitenaice-des-systemes-et-des-equipements',function(){
    require_once "../views/pages/buld.php";
},'lmse');
$router->map('GET','/ingenieur-en-extraction-miniere',function(){
/home/hoqkclc/e3mg.ga/public/index.php
 
 
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
//Register route
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
 
$router = new AltoRouter();
require __DIR__.'/../configs/route.php';
 
 
 
$match = $router->match();
 
// call closure or throw 404 status
if(is_array($match)){
    if(is_callable( $match['target'] ) ) {
        call_user_func_array( $match['target'], $match['params']);
    } else {
        // no route was matched
        // $params = $match['params'];
        // require "../templates/{$match['target']}.php";
        header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
    }
}else{
    include "../views/error/404.view.php";
}
 

Environment & details:

Key Value
page 0
empty
empty
empty
empty
Key Value
USER hoqkclc
SCRIPT_NAME /index.php
REQUEST_URI /actualite?page=0
QUERY_STRING page=0
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING page=0
REDIRECT_URL /actualite
REMOTE_PORT 60692
SCRIPT_FILENAME /home/hoqkclc/e3mg.ga/public/index.php
SERVER_ADMIN postmaster@www.e3mg.ga
DOCUMENT_ROOT /home/hoqkclc/e3mg.ga/public
REMOTE_ADDR 216.73.216.188
SERVER_PORT 443
SERVER_ADDR 10.100.20.14
SERVER_NAME www.e3mg.ga
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 216.73.216.188
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID 5aa95f5f3e7e28ba262b674f15bfd618
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.188
HTTP_X_PREDICTOR 1
HTTP_HOST www.e3mg.ga
ENVIRONMENT production
CFG_CLUSTER cluster100
HTTPS on
SCRIPT_URI https://www.e3mg.ga:443/actualite
SCRIPT_URL /actualite
GEOIP_LONGITUDE -119.070099
GEOIP_LATITUDE 34.355598
GEOIP_AREA_CODE 805
GEOIP_DMA_CODE 803
GEOIP_CITY Santa Paula
GEOIP_REGION CA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID aTRJt7EJTLldeMAWL5mspAAAAnI
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1765034423.9404
REQUEST_TIME 1765034423
argv Array ( [0] => page=0 )
argc 1
Key Value
USER hoqkclc
SCRIPT_NAME /index.php
REQUEST_URI /actualite?page=0
QUERY_STRING page=0
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING page=0
REDIRECT_URL /actualite
REMOTE_PORT 60692
SCRIPT_FILENAME /home/hoqkclc/e3mg.ga/public/index.php
SERVER_ADMIN postmaster@www.e3mg.ga
DOCUMENT_ROOT /home/hoqkclc/e3mg.ga/public
REMOTE_ADDR 216.73.216.188
SERVER_PORT 443
SERVER_ADDR 10.100.20.14
SERVER_NAME www.e3mg.ga
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 216.73.216.188
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID 5aa95f5f3e7e28ba262b674f15bfd618
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.188
HTTP_X_PREDICTOR 1
HTTP_HOST www.e3mg.ga
ENVIRONMENT production
CFG_CLUSTER cluster100
HTTPS on
SCRIPT_URI https://www.e3mg.ga:443/actualite
SCRIPT_URL /actualite
GEOIP_LONGITUDE -119.070099
GEOIP_LATITUDE 34.355598
GEOIP_AREA_CODE 805
GEOIP_DMA_CODE 803
GEOIP_CITY Santa Paula
GEOIP_REGION CA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID aTRJt7EJTLldeMAWL5mspAAAAnI
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1765034423.9404
REQUEST_TIME 1765034423
argv Array ( [0] => page=0 )
argc 1
0. Whoops\Handler\PrettyPageHandler