Home » Harta site


SELECT DISTINCT(MONTH(`data_ad`)) AS luna FROM `tbl_articole` WHERE `activ` = 'Y' AND (MONTH(`data_ad`) < MONTH(CURRENT_TIMESTAMP)-1) AND (YEAR(`data_ad`) <= YEAR(CURRENT_TIMESTAMP)) ORDER BY `uid` DESC
Expression #1 of ORDER BY clause is not in SELECT list, references column '100construct.tbl_articole.uid' which is not in SELECT list; this is incompatible with DISTINCT