Q:

2 table MYSQL PHP query and application with PHP to populate a HTML grid display

Hello and thank you for viewing my question, I'll get into it.
I'm looking to pull a bunch of data stored in two different tables within a MySQL database, assign values from each row into arrays (if this is the best approach), then use this data to populate html grid elements (so that each row is used to populate one box in the grid). 
This will end up as a grid preview for threads within a php-mysql webapp, a user will have threads displayed as 'preview items', which they may click to open the thread in full.
So far this is how I'm approaching the task, do you have any tips or recommendations on how you would do the same?
idea_thread contains information about the threads, and thumb contains the images used for thumbnails and grid box side.
    $result = $stmt = $mysqli->query("SELECT i.idea_id, i.user_id, i.time, i.title, i.Brief, t.location, t.width, t.height, t.colour 
FROM idea_thread i, thumb t
    WHERE t.idea_id = i.idea_id 
        ORDER BY i.idea_id DESC LIMIT 150,5");  
while ($row = $stmt->fetch_array(MYSQLI_ASSOC)){

        $id = $row[0];
        $user = $row[1];
        $date = $row[2];
        $title = $row[3];
        $briefdescrip = $row[4];
        $photolocation = $row[5];
        $width = $row[6];
        $height = $row[7];
        $color = $row[8];
};

?>
        
Thank you for reading and for any tips you may offer.
For somereason this code however returns nothing but a white screen? Any thoughts as to why?
Edits applied as a result of suggestions, reflected in my code **

A:

Please try this:
 $mysqli = 'do connect';

   $stmt =  $mysqli->prepare("
    SELECT * i.idea_id, 
             i.user_id, 
             i.time, 
             i.title, 
             i.Brief, 
             t.location, 
             t.width, 
             t.height, 
             t.colour 
    FROM idea_thread i
        LEFT OUTER JOIN thumb t ON t.idea_id = i.idea_id 
    ORDER BY i.idea_id DESC"); 

   $stmt->execute();

     while ($row = $stmt->fetch()) {
         //do staff here
     }

reference: http://www.php.net/manual/en/mysqli-stmt.fetch.php
 and http://dev.mysql.com/doc/refman/5.0/en/join.html

