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