关于为什么我会遇到语法错误的任何想法?
$this->db->select("DATE_FORMAT(".$this->news_articles_table."'.date_posted', '%M %D, %Y'");
更新:
$this->db->select("DATE_FORMAT(".$this->news_articles_table."'.date_posted', '%M %D, %Y')");
发生数据库错误
错误号:1064
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 2 行的“FROM (
news_articles) JOINnews_categoriesONnews_articles.`news_categorie”附近使用正确的语法选择
news_articles。id,news_articles.article_title,news_categories. , CONCAT(first_name, ' ', last_name) 作为作者, DATE_FORMATcategory_name(news_articles'.date_posted','%M%D, ,%Y').statusesFROMstatus_name(news_articles)news_categories加入news_articles.news_categories_id=news_categories.id加入 . = .加入 . = .usersnews_articlesauthor_idusersuser_idstatusesnews_articlesstatus_idstatusesid文件名:/home/xtremer/public_html/kowmanager/modules/news/models/news_model.php
行号:74