function initQuery($params) { $tables = Wishlist::getTables(); $wltable = $tables['wishlist']['columns']; $this->WhereValue($wltable['wl_id'], DB_EQ, $params['wl_id']); $this->WhereAND(); $this->WhereValue($wltable['customer_id'], DB_EQ, $params['customer_id']); }