Unknown column 'apps' in 'where clause'
select * from files where file_id=apps and file_type=1