1) Fixed a bug in raw SQL.