SELECT * FROM news.cs, news.cs_opt WHERE id_ap = 'YYIUCN' AND id_lingua = 'it' AND (rs IS NULL or rs = '0') AND (scadenza IS NULL or scadenza = '') AND `cs`.`id`=`cs_opt`.`id_cs` AND `cs_opt`.`su1`='1' UNION SELECT * FROM news.cs, news.cs_opt WHERE id_ap = 'YYFEDERP' AND id_lingua = 'it' AND (rs IS NULL or rs = '0') AND (scadenza IS NULL or scadenza = '') AND `cs`.`id`=`cs_opt`.`id_cs` AND `cs_opt`.`su1`='1' ORDER BY data DESC, id DESC, titolo ASC LIMIT -10, 10