Synax Error In Function - MYSQL : im trying to make a function that does a simple `insert` into a table called `poli`, the purpose of this fuction: 

 - returns 1 when it inserts the values to the table 
 - in any other case it    returns 0.

This is the code in mysql that i wrote:

    CREATE OR REPLACE FUNCTION ADDPOLI 
    ( ID IN NUMBER, NAME IN VARCHAR2 , LON IN FLOAT , LAT IN FLOAT , STATUS OUT NUMBER ) 
    return status
    
              IS cursor poli_count is select count(id) from poli;
    
    BEGIN
       
        declare number_of_cities int;
    
        fetch poli_c into number_of_cities;
    if number_of_cities<= 15 and number_of_cities>=0 then
    insert into poli values(id,name,lat,lon);
    return 1;
    else 
    return 0;
    end if;
    
    END ADDPOLI;

> i have a syntax error here: fetch poli_c into number_of_cities;

how can i fix it ?