MySQL Error:
SELECT sum(reszb_all.sl) slc, reszb_all.mbdate, reszb_all.compfname,reszb_all.memberid as mbid FROM reszb_all WHERE ( (isxh>5 and sl>0 and jg>0 ) OR xh_showflag=1 ) AND ( reszb_all.jhdda_id = OR reszb_all.jhddb_id = OR reszb_all.jhddc_id = ) AND res_ch!=17 AND isshowzy = 1 AND mbdate >='2018-11-20' GROUP BY reszb_all.memberid ORDER BY mbdate desc LIMIT 20
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 reszb_all.jhddb_id = OR reszb_all.jhddc_id = ) AND res_ch!=17 AND isshowzy' at line 1