prova così

Codice PHP:
$sql_genere="select * from green_data where id IN (\"".implode(",",$row_cat).")"