QUERY: SELECT count(idCategoria) as total FROM descuento WHERE idCategoria = AND idPais = 1 AND status = 1 AND fechaInicio <= '2024-03-28' AND fechaExpiracion >= '2024-03-28'
mysqli Error: 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 idPais = 1 AND status = 1 AND fechaInicio <= '2024-03-28' AND fechaExpir...' at line 1