function delete($tableName, $where_statement = null, $where_conditions = null, $expand = null) { $GLOBALS['db']->update(pwQuery::deleteClause($tableName, $where_statement, $where_conditions, $expand)); return $GLOBALS['db']->affected_rows(); }