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