Well I just put together a simple script here to fetch 1 id from 3 differant tables and I get this error
You have an error in your SQL syntax near 'FROM xoops_bb_forums, total.points FROM points' at line 1
It really seems like mysql is touchy.. I put together a script to fetch all rows from a table but I had to have this
$result = mysql_query("SELECT * FROM points",$db);
I count not just have this
$result = mysql_query("SELECT * FROM points");
anyway here is the code in full
require_once('include/mysql.php');
$query = mysql_query("SELECT xoops_users.uname FROM xoops_users, forum_posts.xoops_bb_forums FROM xoops_bb_forums, total.points FROM points")
or die(mysql_error());
while($row=mysql_fetch_array($query)) {
print "Field 1: " . $row["uname"] . "<br>\n";
print "Field 2: " . $row["forum_posts"] . "<br>\n";
print "Field 3: " . $row["total"] . "<br>\n";
}