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