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