select files.* as tipo from files where files.chiavi like '%|590|%' and (files.est='mp4' or files.est='flv')