Unknown column 'street' in 'where clause'
select count(*) as total from ***_ecms_bmphone where classid in (249,254) and (street='5')