MySQL Query Error select count(*) from view_servicecase where 1=1 and isactive=1 and casepic<>'' and serviceid=7