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