private function loadImageTags() { // find all image tags for this person $q = "\n\t\t\tSELECT *\n\t\t\tFROM image_tag\n\t\t\tWHERE image_id = '" . mysql_real_escape_string((string) $this->image_id) . "' ;\n\t\t"; $result = $this->db->Execute($q); if ($result === false) { daoErrorLog(__FILE__, __LINE__, __METHOD__, __CLASS__, __FUNCTION__, $this->db->ErrorMsg(), "image load loadImageTags 1 ((" . $q . "))"); } while (!$result == NULL && !$result->EOF) { $t = new personImageTag(); $t->image_id = $this->image_id; $t->tag_id = $result->fields['tag_id']; $t->load(); $this->tags[] = $t; $result->MoveNext(); } }