SELECT * FROM prodotti WHERE (categorie='150' or categorie like '150-%' or categorie like '%-150' or categorie='143' or categorie like '143-%' or categorie like '%-143' or categorie='103' or categorie like '103-%' or categorie like '%-103' or categorie='123' or categorie like '123-%' or categorie like '%-123' or categorie='105' or categorie like '105-%' or categorie like '%-105' or categorie='146' or categorie like '146-%' or categorie like '%-146' or categorie='161' or categorie like '161-%' or categorie like '%-161' or categorie='147' or categorie like '147-%' or categorie like '%-147' or categorie='142' or categorie like '142-%' or categorie like '%-142' or categorie='144' or categorie like '144-%' or categorie like '%-144' or categorie='148' or categorie like '148-%' or categorie like '%-148') AND stato='1' AND id<>'24596' ORDER BY RAND() LIMIT 0,10