diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php
index 6de2ed4e..5a9d44f8 100644
--- a/core/imageboard.pack.php
+++ b/core/imageboard.pack.php
@@ -29,7 +29,8 @@ class Image {
 	public function Image($row=null) {
 		if(!is_null($row)) {
 			foreach($row as $name => $value) {
-				// FIXME: some databases use table.name rather than name
+				// some databases use table.name rather than name
+				$name = str_replace("images.", "", $name);
 				$this->$name = $value; // hax
 			}
 			$this->posted_timestamp = strtotime($this->posted); // pray