syntax error: select id,ten from table_tags where id IN (select id_tag from table_protag where id_pro=) and type='' order by id desc