Error in SELECT SELECT Codigo,Indicativo,FechaInicio,FechaFin,nivel FROM expeditions WHERE FechaFin >= CURDATE() AND FechaInicio <= DATE_ADD(CURDATE(),INTERVAL DAY) AND expeditions.cq = AND actban = 1 ORDER BY Indicativo,FechaInicio;
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 expeditions.cq = AND actban = 1 ORDER BY Indicativo,FechaInicio' at line 1