Server shutdown in progress select count(pid) from products where pcap='Y' and (category_code_list = '003002002010003' OR category_code_list LIKE '003002002010003,%' OR category_code_list LIKE '%,003002002010003' OR category_code_list LIKE '%,003002002010003,%' ) and !(vstate_r like '%ST3%') and !( vstate_st='ST4' and (vstate_h>11 or vstate_l<11) and id <> '' ) AND ( (a_auth = 'Y' AND vstate_st != 'ST2') OR (vstate_st = 'ST2' AND id = '')) order by pid desc |