i have following query
SELECT *, count(jx_commissions.commission_amount) AS summe
FROM jx_members
INNER JOIN jx_commissions ON jx_commissions.mid = jx_members.mid
WHERE jx_commissions.date > '2011-01-01'
GROUP BY jx_commissions.mid
ORDER BY summe DESC
LIMIT 1, 20
field Date have a date format and all dates have the right format Y-m-d
but if i use this query i do not get any results... if i change date to a nother one, i get wrong results... i think he compare a string... but how can i search for a date??


dateis a date field, this will do a date comparison. Can you show what kind of wrong results you get?