SQL Error:
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 MONTH(news_dt) >= 9 ORDER BY 1 DESC' at line 1
SELECT DISTINCT(YEAR(news_dt)) AS distYr
FROM news
WHERE news_lang = 'en' AND news_nc_id = AND MONTH(news_dt) >= 9
ORDER BY 1 DESC
SQL Error:
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 nc_lang = "en"' at line 1
SELECT nc_id,nc_lang,nc_name
FROM news_cate
WHERE nc_id = AND nc_lang = "en"
Maryknoll Fathers’ School