Calendário | claquete.com.br
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 EXTRACT(YEAR FROM ESTREIA) = 2017 ORDER BY DIA' at line 1-SELECT SQL_CACHE DISTINCT EXTRACT(DAY FROM ESTREIA) AS DIA, EXTRACT(MONTH FROM ESTREIA) AS MES, EXTRACT(YEAR FROM ESTREIA) AS ANO FROM FILMES WHERE EXTRACT(MONTH FROM ESTREIA) = AND EXTRACT(YEAR FROM ESTREIA) = 2017 ORDER BY DIA;