Как мне перевести эти запросы mysql для работы с sqlite3?:
self.find(:first, :conditions => ['concat(first_name, \' \', middle_names, \' \', last_name) = ?', name])
self.find(:all, :conditions => ['(concat(first_name, \' \', last_name) LIKE ?) OR (concat(first_name, \' \', middle_names, \' \', last_name) LIKE ?)', "%#{name}%", "%#{name}%"])