Fixes query in homonyms cron.
[platal.git] / bin / cron / homonyms.php
index cda0f68..88a7ee4 100755 (executable)
@@ -34,7 +34,7 @@ $resRobot = XDB::iterator("SELECT  uid, alias, expire
 while ($old = $resRobot->next()) {
     $res = XDB::query('SELECT  a.hruid
                          FROM  homonyms AS h
-                   INNER JOIN  accounts AS a (h.uid = a.uid)
+                   INNER JOIN  accounts AS a ON (h.uid = a.uid)
                         WHERE  homonyme_id = {?}',
                       $old['id']);
     $hruids = $res->fetchColumn();