That bit of code looks like it would incur 3 `SELECT`s, when it could do one. It's not necessarily something to worry about though.