Error! info: MySQL Query Error

Time: 2019-11-13 3:19am
Script: /theme_show.php

SQL: select * from files where table_id= and file_falg='sma'
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and file_falg='sma'' at line 1
Errno.: 1064