def make_where_statement(dicta=None, operator='=', separator='AND', **kwargs):
    """
    make_where_statement(operator='=', separator='AND', **kwargs) -> ('', (,))
    Makes a simple where statement, compatible with get_rows and get_row.

    Default operator used between col and value is '=' (equals)

    Available operators include everything supported by the dbms

    e.g. '>', '<', '!=', 'LIKE' (text fields), 'ILIKE', etcetera


    separator can be 'AND', 'OR' or anything else the dbms supports.

    Takes any other named arg and intperpres as a column name:value pair.    
    """
    dicta = dicta if dicta else kwargs
    if not dicta:
        return '', ()
    sufstring = ''
    sufparams = []
    for key, value in dicta.iteritems():
        pref = 'WHERE' if not sufstring else separator
        sufstring += '%s %s %s ? ' % (pref, key, operator)
        sufparams.append(value)
    return sufstring, sufparams
