1054 - Unknown column 'lid' in 'where clause'

select COUNT(*) as num from gallery_pictures where category_id='40' and lid='1'

[TEP STOP]