In queries, a double equals sign (==) is used for test of equality. Prior to v4.6 a single '=' in a query was an equality test or an assignment operator depending on code syntax. The '==' usage removes such ambiguity.
The use of a single '=' in a query as an equality test is strongly deprecated and should be updated to the correct syntax before legacy usage is withdrawn.