Make find_all_by_sql static to avoid strict mode warning.