OcurriĆ³ un Error con la Base de Datos

Error Number: 1064

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 s.idioma = 1 AND a.idioma = 1 AND t.idioma = 1' at line 6

SELECT s.id2 FROM sales AS s JOIN terminals AS t ON (s.cf_terminal = t.id2) JOIN aeroport AS a ON (t.cf_aeroport = a.id2) WHERE s.url = "plaza_premium_lounge_t2_int" AND a.id2 = AND s.idioma = 1 AND a.idioma = 1 AND t.idioma = 1