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