[eluser]Aken[/eluser]
[quote author="Harold Villacorte" date="1359660098"]If you are using Active Record that should not be necessary. The escaping would be done in the database driver.[/quote]
You should still check the format of the URI segment before running the query. Never trust user input.