fixed bug introduced when enhancing amber query that caused all queries to fail on mysql