最新新闻
筛选方式
排序方式
Exception -> object(PDOException)#4 (8) { ["message":protected]=> string(260) "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 'ORDER BY news.`postingdate_from` DESC LIMIT 0, 3' at line 15" ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(5) "42000" ["file":protected]=> string(55) "/var/www/vhosts/fytgsweb/public_html/include/db.inc.php" ["line":protected]=> int(41) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(55) "/var/www/vhosts/fytgsweb/public_html/include/db.inc.php" ["line"]=> int(41) ["function"]=> string(7) "execute" ["class"]=> string(12) "PDOStatement" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> NULL } } [1]=> array(4) { ["file"]=> string(53) "/var/www/vhosts/fytgsweb/public_html/sc/news_list.php" ["line"]=> int(232) ["function"]=> string(7) "prepare" ["args"]=> array(1) { [0]=> string(622) "SELECT news.`news_id`, news.`postingdate_from`, news.`thumbnail`, news.`name_sc` AS news_title, news.`desc_sc` AS news_desc, news.`external_url_sc` AS external_url, news_cat.`name_sc` AS news_cat_title FROM `fytgs_news` AS news, `fytgs_news_cat` AS news_cat WHERE news.`news_cat_id` = news_cat.`news_cat_id` AND news.`is_active` = 1 AND news.`is_delete` = 0 AND news_cat.`is_active` = 1 AND news_cat.`is_delete` = 0 ORDER BY news.`postingdate_from` DESC ORDER BY news.`postingdate_from` DESC LIMIT 0, 3" } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "42000" [1]=> int(1064) [2]=> string(204) "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 'ORDER BY news.`postingdate_from` DESC LIMIT 0, 3' at line 15" } }
Fatal error: Uncaught PDOException: 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 'ORDER BY news.`postingdate_from` DESC LIMIT 0, 3' at line 15 in /var/www/vhosts/fytgsweb/public_html/include/db.inc.php:41 Stack trace: #0 /var/www/vhosts/fytgsweb/public_html/include/db.inc.php(41): PDOStatement->execute(NULL) #1 /var/www/vhosts/fytgsweb/public_html/sc/news_list.php(232): prepare('SELECT \r\n\t\t\t\t\t\t...') #2 {main} thrown in /var/www/vhosts/fytgsweb/public_html/include/db.inc.php on line 41