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