<?php
mysql_query("
SELECT
p.bericht,
p.topic_id,
p.tijd,
p.poster_id,
p.forum_id,
g.gebruikersnaam,
g.avatar,
g.gebruiker_id
FROM
posts as p,
gebruikers as g
WHERE
p.topic_id = '".$topic_id."',
p.poster_id = g.gebruiker_id,
p.forum_id = '".$forum_id."'
ORDER BY post_id
LIMIT $limitmin, $limitmax
") or die(mysql_error());
?>
foutmelding:
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 ' p.poster_id = g.gebruiker_id, p.forum_id = '1' ORDER BY post_id LIMIT 1, 20' at line 14
ziet iemand de fout hier?