well this isnt the actual db im using, just a clone showing the stuff implicated in this problem..
(i cant post the original is waaaay to many "crap" info)
-- phpMyAdmin SQL Dump
-- version 2.8.1
-- Host: localhost
-- Generation Time: Aug 04, 2006 at 01:23 PM
-- Server version: 5.0.16
-- PHP Version: 5.1.1
-- Database: test
--
-- Table structure for table comments
CREATE TABLE comments (
commentid int(11) NOT NULL auto_increment,
fromid int(11) NOT NULL,
itemid int(11) NOT NULL,
time int(11) NOT NULL,
body varchar(50) NOT NULL,
PRIMARY KEY (commentid)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table comments
INSERT INTO comments (commentid, fromid, itemid, time, body) VALUES (1, 1, 1, 10, 'this is my comment'),
(2, 1, 2, 11, 'this is my other comment'),
(3, 2, 1, 12, 'sandras comment'),
(4, 1, 2, 13, 'sandras comment another');
--
-- Table structure for table content
CREATE TABLE content (
itemid int(11) NOT NULL auto_increment,
title varchar(50) NOT NULL,
body varchar(100) NOT NULL,
PRIMARY KEY (itemid)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table content
INSERT INTO content (itemid, title, body) VALUES (1, 'title of content 1', 'body of content 1'),
(2, 'title of content 2', 'body of content 2');
--
-- Table structure for table users
CREATE TABLE users (
userid int(11) NOT NULL auto_increment,
username varchar(12) NOT NULL,
email varchar(35) NOT NULL,
PRIMARY KEY (userid)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table users
INSERT INTO users (userid, username, email) VALUES (1, 'bob', 'bob@bob.com'),
(2, 'sandra', 'sandra@sandra.com');