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