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