def get_ticker_info(d_con, tid):
    """
    INPUTS:
        d_con (mysql) - A pymysql database connection with dict() return
        tid (int) - id of ticker
    OUTPUT:
        Dictionary with information about a ticker.
    """

    sql = ["SELECT id,ticker,name,sector FROM symbols",
           "WHERE id={}".format(tid),
           ";"]
    with d_con.cursor() as d_cur:
        d_cur.execute(" ".join(sql))
        info = d_cur.fetchone()

    return info