i should probably add a few things: here is teh original query:
$articleQuery=mysql_query("select ff_date,title,body from
articles (inner join realms on realm) where realms.name like
'article';");
okay here are the db structs for the articles table and the realms table:
mysql> explain articles;
+---------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+---------+------+-----+---------+----------------+
| id | int(11) | | PRI | 0 | auto_increment |
| ff_date | text | YES | | NULL | |
| title | text | YES | | NULL | |
| realm | int(11) | YES | | NULL | |
| body | text | YES | | NULL | |
| posted_by_ndx | int(11) | YES | | NULL | |
+---------------+---------+------+-----+---------+----------------+
and realms:
mysql> explain realms;
+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | int(11) | | PRI | 0 | auto_increment |
| name | varchar(32) | YES | | NULL | |
+-------+-------------+------+-----+---------+----------------+
anyhow, i need to get each article in the articles table that has a realm of '1' for instance, but i need to reference that via realms.name.
hope this clears up some...