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 'and status=1 and (public_date<='2024-05-29') GROUP BY DATE_FORMAT(public_date, '' at line 1
Fatal error: Uncaught exception 'Exception' with message 'Query Statement Error : SELECT DATE_FORMAT(public_date, '%Y-%m') as monthly_date, COUNT(*) as count FROM d_news WHERE delete_flag<>1 and kind= and status=1 and (public_date<='2024-05-29') GROUP BY DATE_FORMAT(public_date, '%Y%m') ORDER BY DATE_FORMAT(public_date, '%Y%m') desc' in /var/www/vhosts/tahara.or.jp/httpdocs/html/htdocs/new/framework/general_classes/DB.php:220 Stack trace: #0 /var/www/vhosts/tahara.or.jp/httpdocs/html/htdocs/new/framework/general_classes/DB.php(118): DB->query('SELECT DATE_FOR...') #1 /var/www/vhosts/tahara.or.jp/httpdocs/html/htdocs/new/news-detail.php(35): DB->select('d_news', Array) #2 {main} thrown in /var/www/vhosts/tahara.or.jp/httpdocs/html/htdocs/new/framework/general_classes/DB.php on line 220