SQL = SELECT * FROM `baza` where `VIZIBIL` > 1 and `VIZIBIL` != 2801 and `COD` not like 'Timis' and ((`OBIECT_ACTIVITATE` like "hdd %" or `FIRMA` like "hdd %" or `OBIECT_ACTIVITATE` like "% hdd %" or `FIRMA` like "% hdd %") or (`OBIECT_ACTIVITATE` like "hdd,%" or `FIRMA` like "hdd,%" or `OBIECT_ACTIVITATE` like "% hdd,%" or `FIRMA` like "% hdd,%" or `OBIECT_ACTIVITATE` like "% hdd" or `FIRMA` like "% hdd")) order by `CREDITE` desc, `TVA` desc, `DATA` desc