SQL = SELECT * FROM `baza` where `VIZIBIL` > 1 and `VIZIBIL` != 2801 and `COD` not like 'Timis' and (MATCH (`OBIECT_ACTIVITATE`,`FIRMA`,`LOCALITATE`,`COD`) AGAINST (' copert* lucr* diplom* orade*' IN BOOLEAN MODE)) or ((`OBIECT_ACTIVITATE` like "259 %" or `FIRMA` like "259 %" or `OBIECT_ACTIVITATE` like "% 259 %" or `FIRMA` like "% 259 %") or (`OBIECT_ACTIVITATE` like "259,%" or `FIRMA` like "259,%" or `OBIECT_ACTIVITATE` like "% 259,%" or `FIRMA` like "% 259,%" or `OBIECT_ACTIVITATE` like "% 259" or `FIRMA` like "% 259")) or ((`OBIECT_ACTIVITATE` like "259 %" or `FIRMA` like "259 %" or `OBIECT_ACTIVITATE` like "% 259 %" or `FIRMA` like "% 259 %") or (`OBIECT_ACTIVITATE` like "259,%" or `FIRMA` like "259,%" or `OBIECT_ACTIVITATE` like "% 259,%" or `FIRMA` like "% 259,%" or `OBIECT_ACTIVITATE` like "% 259" or `FIRMA` like "% 259")) order by `CREDITE` desc, `TVA` desc, `DATA` desc