Show
Ignore:
Timestamp:
08/23/06 22:39:49 (2 years ago)
Author:
cfriesen
Message:

Some SQL modifications. Hope this doesn't mess anything up..

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/admin/items.php

    r1528 r1542  
    9696                break; 
    9797            } 
    98             $sql = " from ".getTable('item') ." i INNER JOIN " .getTable('channels') . " c ON c.id=i.cid " 
     98            $sql = " from ".getTable('item') ." i inner join " .getTable('channels') . " c on c.id=i.cid " 
    9999                   ." where 1=1 "; 
    100100 
     
    131131                    } 
    132132 
    133                     $tsql = " select distinct fid from ". getTable('metatag') . " m, " 
    134                             . getTable('tag') . " t" 
    135                             ." where m.tid=t.id and t.tag in ('" 
     133                    $tsql = " select distinct fid from ". getTable('metatag') . " m " 
     134                            . " inner join " . getTable('tag') . " t" 
     135                            . "   on t.id = m.tid " 
     136                            . " where t.tag in ('" 
    136137                            . implode("', '", $trimmed_exclude_tags) ."')"; 
    137138                } 
     
    151152                //delete the tags for these items 
    152153                $sqlids = "select distinct i.id,i.cid " . $sql 
    153                           . " and i.cid=c.id order by i.cid, i.id desc"; 
     154                          . " order by i.cid, i.id desc"; 
    154155 
    155156