#114378 by IneX @ 10. January 19:40, edited @ 12. January 00:29 - nach oben -

Zorg vs. zorg

Ufgrund dä aktuellä Diskussion über d‘Richtigkeit

MySQL Error: 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 'JOIN poll_votes tot ON v.poll=p.id WHERE id=263 GROUP BY p.id' at line 4
SQL-Query: SELECT p.*, UNIX_TIMESTAMP(p.date) date, if(v.user IS NULL, 0, v.answer) myvote, count(tot.user) tot_votes FROM polls p LEFT JOIN poll_votes v ON v.poll=p.id AND v.user= LEFT JOIN poll_votes tot ON v.poll=p.id WHERE id=263 GROUP BY p.id
FILE: /var/www/includes/poll.inc.php
Line: 30
Function: getPoll