You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '& (1 << bcounter)' at line 4SELECT * FROM boxes
WHERE
fid = 88 AND
& (1 << bcounter)