SQL = SELECT * FROM `baza` where `VIZIBIL` >= 1 and (MATCH (`OBIECT_ACTIVITATE`,`FIRMA`,`LOCALITATE`,`COD`) AGAINST (' finisaj*' IN BOOLEAN MODE)) or ((`OBIECT_ACTIVITATE` like "mat %" or `FIRMA` like "mat %" or `OBIECT_ACTIVITATE` like "% mat %" or `FIRMA` like "% mat %") or (`OBIECT_ACTIVITATE` like "mat,%" or `FIRMA` like "mat,%" or `OBIECT_ACTIVITATE` like "% mat,%" or `FIRMA` like "% mat,%" or `OBIECT_ACTIVITATE` like "% mat" or `FIRMA` like "% mat")) and `COD` like 'satu mare%' order by `CREDITE` desc, `TVA` desc, `DATA` desc