SQL Error:
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 'AND ac_lang = 'tc' LIMIT 1' at line 1
SELECT ac_name
FROM album_cate
WHERE ac_id = AND ac_lang = 'tc'
LIMIT 1
SQL Error:
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 'ORDER BY alb_dt ASC LIMIT 1' at line 1
SELECT MIN(alb_dt) as year
FROM album
WHERE alb_lang = 'tc' AND alb_ac_id =
ORDER BY alb_dt ASC
LIMIT 1
SQL Error:
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 'UNION SELECT DISTINCT(YEAR(alb_dt) - 1) AS Yr FROM album WHERE MONTH(alb_dt) ' at line 1
SELECT DISTINCT(YEAR(alb_dt)) AS Yr
FROM album
WHERE MONTH(alb_dt) >= 9 AND alb_ac_id =
UNION
SELECT DISTINCT(YEAR(alb_dt) - 1) AS Yr
FROM album
WHERE MONTH(alb_dt) < 9 AND alb_ac_id =
ORDER BY 1 DESC

活動花絮