$q = "SELECT * FROM dub_catWords WHERE worth = '1'"; echo '<br /> query ' . $q; // TESTING $r = mysql_query($q); while($words = mysql_fetch_array($r, MYSQL_ASSOC))){ // Acts as if word not exist echo '<br />word ' . $word['word']; // TESTING echo '<br />catID ' . $word['catID']; // TESTING}