Creating efficient PDO functions
I'm not sure why you think that forcing this into one function will make it a "best practice," and that doesn't seem right anyways.

I suppose one way you could do it is:

 WHERE id = :id AND otherid LIKE :otherid


If it were to be in the second function, :otherid would be a wildcard (%). Otherwise just have your value. Check out this.