DB ERROR

=============================================================================
Mysql_Query : select * from web_advert where (ad_city_id = 0 or ad_city_id = ) and ad_type_code = 'm01' and ad_pass = '1' order by ad_id desc limit 1
Mysql_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 ad_type_code = 'm01' and ad_pass = '1' order by ad_id desc limit 1' at line 1
Mysql Error Num : 1064

=============================================================================