MySQL Error:
SELECT count(*) AS total FROM (SELECT sum(reszb_all.sl) slc, reszb_all.mbdate, reszb_all.compfname,reszb_all.memberid as mbid FROM reszb_all WHERE sl>0 AND ( (isxh>5 and sl>0 and jg>0 ) OR xh_showflag=1 ) AND ( jhdda_id= OR jhddb_id= OR jhddc_id= OR jhdda_parentid= OR jhddb_parentid= OR jhddc_parentid= ) AND res_ch!=17 AND isshowzy = 1 AND mbdate >='2019-07-14' GROUP BY reszb_all.memberid ) AS temp
Error Info: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 'OR jhddb_id= OR jhddc_id= OR jhdda_parentid= OR jhddb_parentid= OR jhddc_parent' at line 1