PDOException ERROR: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-6, 6' at line 4
FILE TRACE:
0: "/var/www/html/application/MyPdoAdapter.php":15 - Phalcon\Db\Adapter\Pdo->query("SELECT *, thumb.meta_value AS thumbnail FROM wp_posts
LEFT JOIN wp_postmeta AS thumbid ON thumbid.meta_key="_thumbnail_id" AND thumbid.post_id=wp_posts.ID
LEFT JOIN wp_postmeta AS thumb ON thumbid.meta_value=thumb.post_id AND thumb.meta_key="_wp_attached_file"
WHERE post_status="publish" AND post_type="post" AND YEAR(post_date)=2019 AND MONTH(post_date)=0 ORDER BY post_date DESC LIMIT -6, 6", , )
1: "/var/www/html/module/wordpress/application/model/WordpressPost.php":199 - MyPdoAdapter->query("SELECT *, thumb.meta_value AS thumbnail FROM wp_posts
LEFT JOIN wp_postmeta AS thumbid ON thumbid.meta_key="_thumbnail_id" AND thumbid.post_id=wp_posts.ID
LEFT JOIN wp_postmeta AS thumb ON thumbid.meta_value=thumb.post_id AND thumb.meta_key="_wp_attached_file"
WHERE post_status="publish" AND post_type="post" AND YEAR(post_date)=2019 AND MONTH(post_date)=0 ORDER BY post_date DESC LIMIT -6, 6")
2: "/var/www/html/module/wordpress/application/model/WordpressPost.php":283 - wordpress\application\model\WordpressPost->query("SELECT *, thumb.meta_value AS thumbnail FROM wp_posts
LEFT JOIN wp_postmeta AS thumbid ON thumbid.meta_key="_thumbnail_id" AND thumbid.post_id=wp_posts.ID
LEFT JOIN wp_postmeta AS thumb ON thumbid.meta_value=thumb.post_id AND thumb.meta_key="_wp_attached_file"
WHERE post_status="publish" AND post_type="post" AND YEAR(post_date)=2019 AND MONTH(post_date)=0 ORDER BY post_date DESC LIMIT -6, 6")
3: "/var/www/html/module/wordpress/application/model/WordpressPost.php":56 - wordpress\application\model\WordpressPost->getDataBySql("SELECT *, thumb.meta_value AS thumbnail FROM wp_posts
LEFT JOIN wp_postmeta AS thumbid ON thumbid.meta_key="_thumbnail_id" AND thumbid.post_id=wp_posts.ID
LEFT JOIN wp_postmeta AS thumb ON thumbid.meta_value=thumb.post_id AND thumb.meta_key="_wp_attached_file"
WHERE post_status="publish" AND post_type="post" AND YEAR(post_date)=2019 AND MONTH(post_date)=0 ORDER BY post_date DESC LIMIT -6, 6")
4: "/var/www/html/module/wordpress/application/controller/BlogController.php":109 - wordpress\application\model\WordpressPost->getPosts("AND YEAR(post_date)=2019 AND MONTH(post_date)=0 ORDER BY post_date DESC LIMIT -6, 6")
5: "/var/www/html/module/wordpress/application/controller/BlogController.php":43 - BlogController->postList("AND YEAR(post_date)=2019 AND MONTH(post_date)=0 ORDER BY post_date DESC", 0)
6: "/var/www/html/public/index.php":630 - Phalcon\Mvc\Application->handle("/blog/archive/2019/upload/theme/heysuccess/new-design/home/featured-logos/cnbc.svg")