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