have you actually checked what query is being sent to the database?