I had the exact same problem. I have a feeling it may be the permissions on the user that WP is executing the query as. The table it is being executed on probably doesn’t provide select permissions, but I cannot verify since my hosting provider doesn’t give me access to that part of the database.