Fix AR class SQl grammar error