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