Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /www/clanteam.com/z/a/c/zachary-mcguire/htdocs/core/includes/posts.inc.php on line 42
While (($row = mysql_fetch_assoc($posts)) !== false){ $rows[] = array( 'id' => $row['id'], 'title' => $row['title'], 'preview' => $row['preview'], 'user' => $row['user'], 'data' => $row['date'], 'total_comments' => ($row['total_comments'] === null) ? 0 : $row['total_comments'], 'last_comment' => ($row['last_comments'] === null) ? 'never' : $row['last_comment'] ); }Would someone be able to tell me why I am receiving this error. The code is supplied above. Thank you.
EDIT: That is the code that is on line 42 of that php file.
EDIT TWO: http://pastesite.com/38590