<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Searching for similar Faces error &quot;MDB2 Error: no such field&quot; using postgresql</title> 
  <pubDate>Sun, 05 Apr 2026 20:34:24 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8610</link> 
  <atom:link rel="self" type="application/rss+xml" title="Searching for similar Faces error &quot;MDB2 Error: no such field&quot; using postgresql" href="https://bugs.horde.org/ticket/8610/rss" /> 
  <description>Searching for similar Faces error &quot;MDB2 Error: no such field&quot; using postgresql</description> 
 
   
   
  <item> 
   <title>Looks like the following log entry may give details. I&#039;m usi</title> 
   <description>Looks like the following log entry may give details. I&#039;m using Postgresql 8.4.1 and have not tried this on MySQL:



Sep 28 16:15:43 HORDE [error] [ansel] MDB2 Error: no such field: _doQuery: [Error message: Could not execute statement]

[Last executed query: SELECT COUNT(*) as face_matches, i.face_id, f.face_name, f.image_id, f.gallery_id, f.face_signature FROM ansel_faces_index i, ansel_faces f WHERE f.face_id = i.face_id AND i.face_id &lt;&gt; 12 GROUP BY i.face_id HAVING face_matches &gt; 0 ORDER BY face_matches DESC LIMIT 20 OFFSET 0]

[Native message: ERROR:  column &quot;face_matches&quot; does not exist at character 215]

 [pid 10376 on line 1053 of &quot;/var/www/html/horde-webmail-1.2.4/ansel/lib/Faces.php&quot;]

Sep 28 16:15:43 HORDE [debug] [ansel] MDB2 Error: no such field: _doQuery: [Error message: Could not execute statement]

[Last executed query: SELECT COUNT(*) as face_matches, i.face_id, f.face_name, f.image_id, f.gallery_id, f.face_signature FROM ansel_faces_index i, ansel_faces f WHERE f.face_id = i.face_id AND i.face_id &lt;&gt; 12 GROUP BY i.face_id HAVING face_matches &gt; 0 ORDER BY face_matches DESC LIMIT 20 OFFSET 0]

[Native message: ERROR:  column &quot;face_matches&quot; does not exist at character 215]

 [pid 10376 on line 176 of &quot;/var/www/html/horde-webmail-1.2.4/lib/Horde/Notification.php&quot;]

Sep 28 16:15:43 HORDE [debug] [ansel] SQL query by Horde_Alarm_sql::_list(): SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL AND alarm_start &lt;= ?) OR alarm_snooze &lt;= ?) AND (alarm_end IS NULL OR alarm_end &gt;= ?) AND (alarm_uid = ? OR alarm_uid = ?) ORDER BY alarm_start, alarm_end [pid 10376 on line 148 of &quot;/var/www/html/horde-webmail-1.2.4/lib/Horde/Alarm/sql.php&quot;]



The error messages is displayed across the top of the page, and in the log entry above.</description> 
   <pubDate>Mon, 28 Sep 2009 23:24:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8610#t56004</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Not all RDBM</title> 
   <description>Changes have been made in CVS for this ticket:

Not all RDBMS allow column aliases in HAVING clause.
Bug: 8610
http://cvs.horde.org/diff.php/ansel/lib/Faces.php?rt=horde&amp;r1=1.18.2.6&amp;r2=1.18.2.7&amp;ty=u</description> 
   <pubDate>Tue, 29 Sep 2009 14:58:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8610#t56021</link> 
  </item> 
   
  <item> 
   <title>Seems like mySQL allows a column alias in the HAVING clause,</title> 
   <description>Seems like mySQL allows a column alias in the HAVING clause, while postgres and some others do not.



Fixed for 1.1, thanks for the report.</description> 
   <pubDate>Tue, 29 Sep 2009 15:00:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8610#t56022</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
