Hallo,
SELECT....COUNT(DISTINCT(
id
)) numvotes,......Wenn ich nun zB folgendes hinzufüge:
WHERE
numvotes
= '5'erhalte ich immer diese Fehlermeldung:
Unknown column 'numvotes' in 'where clause
Wo kann das Problem liegen?
Eine Eigenart von MySQL. Wenn ich mich recht erinnere müsste WHERE COUNT(DISTINCT(id
)) = 5 dein Problem lösen.
Gruß,
Severin
--
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
-- Benjamin Franklin
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
-- Benjamin Franklin