Lines Matching refs:where
107 $where = ' WHERE 1=1';
126 $where .= sprintf(' AND A.page LIKE %s', $this->db->quote_string($ns . '%'));
136 $where .= sprintf(' AND A.page = %s', $this->db->quote_string($args['id'][0]));
142 $where .= ' AND B.status IS NOT null';
144 $where .= ' AND B.status IS null';
154 $where .= sprintf(" AND A.date >= '%s' AND A.date <= '%s' ", $args['from'][0], $args['to'][0]);
165 $where .= ' AND A.md5 = ' . $this->db->quote_string($args['md5'][0]);
195 $where .= sprintf(' AND %s in (%s)', $search, $args[$n]);
201 $where .= ' AND GETACCESSLEVEL(A.page) >= ' . AUTH_READ;
218 ' . $where . '