QUERY: SELECT A.ID_RASSTA, A.RS_TITOLO, B.ID_TESTATA, A.RS_AUTORE, B.RIV_MESE, A.RS_IMG, B.RIV_ANNO,
B.RIV_GIOR
FROM Tab_RS_Rivista AS B JOIN EP10_RASSEGNA_STAMPA AS A
on A.ID_RIVISTA=B.ID_RIVISTA
WHERE B.RIV_ANNO=
AND
A.RS_NV=0
ORDER BY B.RIV_DATA
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
A.RS_NV=0
ORDER BY B.RIV_DATA' at line 6