SELECT distinct MathDate Bigmath_kuuMuay.*,KuuMuay.* FROM Bigmath_kuuMuay,KuuMuay WHERE Bigmath_kuuMuay.MathDate = KuuMuay.MathDate AND Bigmath_kuuMuay.showmath = '1'
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 '.*,KuuMuay.* FROM Bigmath_kuuMuay,KuuMuay WHERE Bigmath_kuuMuay.MathDate = KuuMu' at line 1