닫기 환불책임서
닫기 출원사실증명원

[ Select LT_NUM, LOTTOWIN, count(*) AS WCNT, Sum(LOTTOMONEY) as SLOTTOMONEY From ( Select M.LT_NUM, CASE WHEN LOTTOWIN = 1 THEN LWIN1_MONEY WHEN LOTTOWIN = 2 THEN LWIN2_MONEY WHEN LOTTOWIN = 3 THEN LWIN3_MONEY WHEN LOTTOWIN = 4 THEN LWIN4_MONEY WHEN LOTTOWIN = 5 THEN LWIN5_MONEY ELSE 0 END AS LOTTOMONEY , LOTTOWIN from LS_LOTTO_MEMBER M LEFT JOIN LS_LOTTORST R on M.LT_NUM = R.LT_NUM Where MEM_CODE = And LOTTOWIN > 0 ) A Group by LT_NUM, LOTTOWIN ]

1064 : 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 'And LOTTOWIN > 0 ) A Group by LT_NUM, LOTTOWIN' at line 11

error file : /mypage/sub05c.php