MySql: Some queries produce: SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user
<p>I've just moved applications to a replicated database and for some, but not all, queries I get the following error message: </p>

<pre><code>SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user
</code></pre>

<p>Many other queries work and reviewing the credentials are indeed correct as they work for most queries.</p>

<p>Any ideas what might be causing this error message, given that most queries are successful?</p>