if someone were to place a lien on me, do they have the legal right to that claim when i sell a piece of real estate ?
Depends on what the lien and underlying documentation say and what the relevant law is. Also, it is not possible for "someone . . . to place a lien on" a person. Liens are placed on property. If "someone" (who?) is placing a lien against property of yours (why?), then the lien attaches to whatever it says, subject to the applicable law.
for example, lets say i dont pay a $1000 bill from company ABC, and they do whatever is normal in terms of placing a lien on me
does that give them the right to collect $1000 when i sell a property ?
As a general matter, when a debtor fails to pay a debt owed to a creditor, the creditor has no right to place a lien against anything. In order for a creditor to place a lien against some or all of the debtor's property, one of three things must happen: (1) the debtor must agree to it as part of initial purchase or loan or other transaction, (2) there must be a law expressly giving the creditor the right to a lien (e.g.,
mechanic's lien law) or (3) the creditor must sue and either obtain a judgment or a pre-judgment attachment and either perfect the judgment (by recording an abstract of judgment and/or filing a J-1 with the CA Secretary of State or by serving an attachment levy).
if so, that is putting my lender in 2nd position. if not, then title has no reason to do the search in the first place
Most lenders are not going to give a loan if they're going end up behind anything other than an existing mortgage/deed of trust.
if the lien from abc company was attached to real property, would it have appeared on the preliminary title report ?
It should...if the title examiner does his/her job correctly.