I have users table and want to SELECT some rows by bitmask criteria. I\'ll try to explain my problem with small example.
Structure of table users>
[...] want to SELECT some fields
Wrong. You want to select some Rows. Columns are usually called fields.
You are supposed to read the Documentation: Bit Functions are documented for mysql.
So you can try:
Select * from users WHERE (user_privileges & 1) >0